fork/rust

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

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

1.44.0
555 B13 linesraw
1error[E0038]: the trait `B` cannot be made into an object
2  --> $DIR/issue-38404.rs:3:15
3   |
4LL | trait A<T>: std::ops::Add<Self> + Sized {}
5   |             ------------------- ...because it uses `Self` as a type parameter in this
6LL | trait B<T>: A<T> {}
7   |       - this trait cannot be made into an object...
8LL | trait C<T>: A<dyn B<T, Output=usize>> {}
9   |               ^^^^^^^^^^^^^^^^^^^^^^ the trait `B` cannot be made into an object
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0038`.