]> git.lizzy.rs Git - rust.git/blob - src/test/ui/static/static-method-privacy.rs
Rollup merge of #105872 - chenyukang:yukang/fix-105494-remove-method-call, r=eholk
[rust.git] / src / test / ui / static / static-method-privacy.rs
1 mod a {
2     pub struct S;
3     impl S {
4         fn new() -> S { S }
5     }
6 }
7
8 fn main() {
9     let _ = a::S::new();    //~ ERROR associated function `new` is private
10 }