1 error[E0624]: associated function `new` is private
2 --> $DIR/static-method-privacy.rs:9:19
4 LL | fn new() -> S { S }
5 | ------------- private associated function defined here
7 LL | let _ = a::S::new();
8 | ^^^ private associated function
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0624`.