rust/tests/ui/static/static-method-privacy.stderr
2023-01-11 09:32:08 +00:00

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`.