]> git.lizzy.rs Git - rust.git/blob - tests/ui/static/static-method-privacy.rs
Rollup merge of #106397 - compiler-errors:new-solver-impl-wc, r=lcnr
[rust.git] / tests / 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 }