summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0624.rs
blob: 45f72a565ca1bc53adfc3130d0e769ea4e030404 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
mod inner {
    pub struct Foo;

    impl Foo {
        fn method(&self) {}
    }
}

fn main() {
    let foo = inner::Foo;
    foo.method(); //~ ERROR method `method` is private [E0624]
}