// https://github.com/rust-lang/rust/issues/5988 //@ run-pass trait B { fn f(&self); } trait T : B { } struct A; impl B for U { fn f(&self) { } } impl T for A { } fn main() { let a = A; let br = &a as &dyn B; br.f(); }