]> git.lizzy.rs Git - rust.git/blob - tests/ui/deriving/issue-103157.stderr
Rollup merge of #107172 - cjgillot:no-nal, r=nagisa
[rust.git] / tests / ui / deriving / issue-103157.stderr
1 error[E0277]: the trait bound `f64: Eq` is not satisfied
2   --> $DIR/issue-103157.rs:6:11
3    |
4 LL | #[derive(PartialEq, Eq)]
5    |                     -- in this derive macro expansion
6 ...
7 LL |     Float(Option<f64>),
8    |           ^^^^^^^^^^^ the trait `Eq` is not implemented for `f64`
9    |
10    = help: the following other types implement trait `Eq`:
11              i128
12              i16
13              i32
14              i64
15              i8
16              isize
17              u128
18              u16
19            and 4 others
20    = note: required for `Option<f64>` to implement `Eq`
21 note: required by a bound in `AssertParamIsEq`
22   --> $SRC_DIR/core/src/cmp.rs:LL:COL
23    = note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info)
24
25 error: aborting due to previous error
26
27 For more information about this error, try `rustc --explain E0277`.