]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/issue-38404.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / traits / issue-38404.rs
1 trait A<T>: std::ops::Add<Self> + Sized {}
2 trait B<T>: A<T> {}
3 trait C<T>: A<dyn B<T, Output=usize>> {}
4 //~^ ERROR the trait `B` cannot be made into an object
5
6 fn main() {}