fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
472 B16 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 this bound in `A`
6LL | trait B<T> = A<T>;
7   |              ^^^^ the trait `Foo` is not implemented for `T`
8   |
9help: consider restricting type parameter `T`
10   |
11LL | trait B<T: Foo> = A<T>;
12   |          ^^^^^
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0277`.