rust/tests/ui/issues/issue-5988.rs
2023-01-11 09:32:08 +00:00

25 lines
233 B
Rust

// 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();
}