]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-38404.stderr
Auto merge of #78066 - bugadani:wat, r=jonas-schievink
[rust.git] / src / test / ui / issues / issue-38404.stderr
1 error[E0038]: the trait `B` cannot be made into an object
2   --> $DIR/issue-38404.rs:3:15
3    |
4 LL | trait A<T>: std::ops::Add<Self> + Sized {}
5    |             ------------------- ...because it uses `Self` as a type parameter in this
6 LL | trait B<T>: A<T> {}
7    |       - this trait cannot be made into an object...
8 LL | trait C<T>: A<dyn B<T, Output=usize>> {}
9    |               ^^^^^^^^^^^^^^^^^^^^^^ the trait `B` cannot be made into an object
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0038`.