summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-5988.rs
blob: 303fb4fbc94165f64d2d33f60d0b4986fb820435 (plain)
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();
}