error[E0624]: method `new` is private --> $DIR/static-method-privacy.rs:9:13 | LL | let _ = a::S::new(); | ^^^^^^^^^ error: aborting due to previous error For more information about this error, try `rustc --explain E0624`.