summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/issue-38404.rs
blob: 1a92acc34042b0f8f9f0b3f440a0e81ede2dfe78 (plain)
1
2
3
4
5
6
trait A<T>: std::ops::Add<Self> + Sized {}
trait B<T>: A<T> {}
trait C<T>: A<dyn B<T, Output=usize>> {}
//~^ ERROR the trait `B` cannot be made into an object

fn main() {}