fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

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