about summary refs log tree commit diff
path: root/tests/ui/traits/issue-38404.rs
blob: 36da594c0158803339db94831a22185939a9bb1f (plain)
1
2
3
4
5
6
7
8
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` is not dyn compatible
//~| ERROR the trait `B` is not dyn compatible
//~| ERROR the trait `B` is not dyn compatible

fn main() {}