mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
13 lines
395 B
Plaintext
13 lines
395 B
Plaintext
error[E0624]: associated function `new` is private
|
|
--> $DIR/static-method-privacy.rs:9:19
|
|
|
|
|
LL | fn new() -> S { S }
|
|
| ------------- private associated function defined here
|
|
...
|
|
LL | let _ = a::S::new();
|
|
| ^^^ private associated function
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0624`.
|