blob: 4be1b22fc6b4f4d3b926a4a217f49e198f55a603 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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`.
|