summary refs log tree commit diff
path: root/src/test/ui/static/static-method-privacy.rs
blob: b637037f60e8f6167e9a3a8c415d36cf4bd6cfc0 (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 method `new` is private
}