mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
27 lines
791 B
Plaintext
27 lines
791 B
Plaintext
error[E0277]: the trait bound `f64: Eq` is not satisfied
|
|
--> $DIR/derive-eq-check-all-variants.rs:6:11
|
|
|
|
|
LL | #[derive(PartialEq, Eq)]
|
|
| -- in this derive macro expansion
|
|
...
|
|
LL | Float(Option<f64>),
|
|
| ^^^^^^^^^^^ the trait `Eq` is not implemented for `f64`
|
|
|
|
|
= help: the following other types implement trait `Eq`:
|
|
i128
|
|
i16
|
|
i32
|
|
i64
|
|
i8
|
|
isize
|
|
u128
|
|
u16
|
|
and 4 others
|
|
= note: required for `Option<f64>` to implement `Eq`
|
|
note: required by a bound in `std::cmp::AssertParamIsEq`
|
|
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|