2023-02-21 14:11:08 -07:00
|
|
|
error[E0624]: method `f` is private
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/private-method-inherited.rs:13:7
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-07-17 11:13:50 -07:00
|
|
|
LL | fn f(self) {}
|
2023-02-21 14:11:08 -07:00
|
|
|
| ---------- private method defined here
|
2021-07-17 11:13:50 -07:00
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | x.f();
|
2023-02-21 14:11:08 -07:00
|
|
|
| ^ private method
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0624`.
|