]> git.proxmox.com Git - rustc.git/blame - src/test/ui/wf/wf-trait-fn-where-clause.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / wf / wf-trait-fn-where-clause.stderr
CommitLineData
b7449926 1error[E0277]: the trait bound `Self: std::cmp::Eq` is not satisfied
74b04a01 2 --> $DIR/wf-trait-fn-where-clause.rs:10:49
b7449926 3 |
e1599b0c 4LL | struct Bar<T:Eq+?Sized> { value: Box<T> }
ba9703b0 5 | -- required by this bound in `Bar`
e1599b0c 6...
b7449926 7LL | fn bar(&self) where Self: Sized, Bar<Self>: Copy;
74b04a01
XL
8 | ^^^^- help: consider further restricting `Self`: `, Self: std::cmp::Eq`
9 | |
10 | the trait `std::cmp::Eq` is not implemented for `Self`
b7449926
XL
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0277`.