summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0624.rs
blob: 4c68b70fb165afe0295e13ae1839d6e93e7c25de (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 associated function `method` is private [E0624]
}