2022-10-17 21:07:20 -05:00
|
|
|
error[E0277]: the trait bound `f64: Eq` is not satisfied
|
|
|
|
--> $DIR/issue-103157.rs:6:11
|
|
|
|
|
|
|
|
|
LL | #[derive(PartialEq, Eq)]
|
|
|
|
| -- in this derive macro expansion
|
|
|
|
...
|
|
|
|
LL | Float(Option<f64>),
|
2024-01-29 12:31:02 -06:00
|
|
|
| ^^^^^^^^^^^ the trait `Eq` is not implemented for `f64`, which is required by `Option<f64>: Eq`
|
2022-10-17 21:07:20 -05:00
|
|
|
|
|
|
|
|
= help: the following other types implement trait `Eq`:
|
2024-03-21 07:55:28 -05:00
|
|
|
i128
|
2022-10-17 21:07:20 -05:00
|
|
|
i16
|
|
|
|
i32
|
|
|
|
i64
|
2024-03-21 07:55:28 -05:00
|
|
|
i8
|
|
|
|
isize
|
|
|
|
u128
|
|
|
|
u16
|
2022-10-17 21:07:20 -05:00
|
|
|
and 4 others
|
|
|
|
= note: required for `Option<f64>` to implement `Eq`
|
|
|
|
note: required by a bound in `AssertParamIsEq`
|
|
|
|
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
|
|
|
= note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-10-17 21:07:20 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|