]> git.proxmox.com Git - rustc.git/blame - src/test/ui/wf/wf-trait-fn-arg.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / wf / wf-trait-fn-arg.stderr
CommitLineData
b7449926 1error[E0277]: the trait bound `Self: std::cmp::Eq` is not satisfied
74b04a01 2 --> $DIR/wf-trait-fn-arg.rs:10:22
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, x: &Bar<Self>);
74b04a01
XL
8 | ^^^^^^^^^^ - help: consider further restricting `Self`: `where 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`.