fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
577 B14 linesraw
1error[E0277]: the trait bound `Self: std::cmp::Eq` is not satisfied
2  --> $DIR/wf-trait-default-fn-ret.rs:11:22
3   |
4LL | struct Bar<T:Eq+?Sized> { value: Box<T> }
5   | ----------------------- required by `Bar`
6...
7LL |     fn bar(&self) -> Bar<Self> {
8   |                      ^^^^^^^^^- help: consider further restricting `Self`: `where Self: std::cmp::Eq`
9   |                      |
10   |                      the trait `std::cmp::Eq` is not implemented for `Self`
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0277`.