summaryrefslogtreecommitdiffstats
path: root/src/test/ui/use/use-self-type.rs
blob: 3b4ce429701977b3ffb896d1c13d92ac686b2920 (plain)
1
2
3
4
5
6
7
8
9
10
11
struct S;

impl S {
    fn f() {}
    fn g() {
        use Self::f; //~ ERROR unresolved import
        pub(in Self::f) struct Z; //~ ERROR failed to resolve: `Self`
    }
}

fn main() {}