]> git.lizzy.rs Git - rust.git/blob - src/test/ui/wf/wf-trait-fn-where-clause.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / wf / wf-trait-fn-where-clause.stderr
1 error[E0277]: the trait bound `Self: std::cmp::Eq` is not satisfied
2   --> $DIR/wf-trait-fn-where-clause.rs:20:5
3    |
4 LL |     fn bar(&self) where Self: Sized, Bar<Self>: Copy;
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `Self`
6    |
7    = help: consider adding a `where Self: std::cmp::Eq` bound
8 note: required by `Bar`
9   --> $DIR/wf-trait-fn-where-clause.rs:17:1
10    |
11 LL | struct Bar<T:Eq+?Sized> { value: Box<T> }
12    | ^^^^^^^^^^^^^^^^^^^^^^^
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.