You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the IDL below. windows-bindgen should avoid deriving Eq for struct { IReference<StructWithF32> } similar to how it avoids it for struct { StructWithF32 }.
Crate manifest
[package]
name = "test-windows-bindgen"version = "0.1.0"edition = "2021"
[dependencies]
windows = { version = "0.58.0", features = ["Foundation"] }
windows-core = "0.58.0"
[build-dependencies]
windows-bindgen = "0.58.0"
Compiling test-windows-bindgen v0.1.0 (C:\Users\matt\Code\test-windows-bindgen)
error[E0277]: the trait bound `StructWithF32: std::cmp::Eq` is not satisfied
--> src\bindings.rs:339:5
|
337 | #[derive(Clone, Debug, Eq, PartialEq)]
| -- in this derive macro expansion
338 | pub struct IReferenceStructWrapper {
339 | pub Value: Option<windows::Foundation::IReference<StructWithF32>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `StructWithF32`, which is required by `Option<IReference<StructWithF32>>: std::cmp::Eq`
|
= help: the trait `std::cmp::Eq` is implemented for `Option<T>`
= note: required for `IReference<StructWithF32>` to implement `std::cmp::Eq`
= note: 1 redundant requirement hidden
= note: required for `Option<IReference<StructWithF32>>` to implement `std::cmp::Eq`
The text was updated successfully, but these errors were encountered:
Summary
See the IDL below. windows-bindgen should avoid deriving
Eq
forstruct { IReference<StructWithF32> }
similar to how it avoids it forstruct { StructWithF32 }
.Crate manifest
Crate code
https://github.com/mattico/test-windows-bindgen
src/test.idl
:src/bindings.rs
:The text was updated successfully, but these errors were encountered: