fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
497 B17 linesraw
1error[E0277]: the trait bound `T: Foo` is not satisfied
2  --> $DIR/trait-alias-wf.rs:5:14
3   |
4LL | trait A<T: Foo> {}
5   | --------------- required by `A`
6LL | trait B<T> = A<T>;
7   |              ^^^^ the trait `Foo` is not implemented for `T`
8   |
9help: consider restricting this type parameter with `T: Foo`
10  --> $DIR/trait-alias-wf.rs:5:9
11   |
12LL | trait B<T> = A<T>;
13   |         ^
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.