summaryrefslogtreecommitdiffstats
path: root/tests/ui/static/static-method-privacy.rs
blob: 9ee59b320edcdd5727d87b3b7031246086e0145d (plain)
1
2
3
4
5
6
7
8
9
10
mod a {
    pub struct S;
    impl S {
        fn new() -> S { S }
    }
}

fn main() {
    let _ = a::S::new();    //~ ERROR associated function `new` is private
}