summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/auxiliary/issue-11224.rs
blob: 63543621a80d85203673d9a474ded1d9395a6671 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![deny(dead_code)]

mod inner {
    pub trait Trait {
        fn f(&self) { f(); }
    }

    impl Trait for isize {}

    fn f() {}
}

pub fn foo() {
    let a = &1isize as &inner::Trait;
    a.f();
}