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