1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
// run-pass // pretty-expanded FIXME #23616 trait B { fn f(&self); } trait T : B { } struct A; impl<U: T> B for U { fn f(&self) { } } impl T for A { } fn main() { let a = A; let br = &a as &dyn B; br.f(); }