rust/tests/ui/traits/method-private.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
555 B
Plaintext
Raw Normal View History

error[E0624]: method `method` is private
2021-02-08 22:15:45 +00:00
--> $DIR/method-private.rs:19:9
|
LL | fn method(&self) {}
| ---------------- private method defined here
...
2019-03-09 12:03:44 +00:00
LL | foo.method();
| ^^^^^^ private method
|
= help: items from traits can only be used if the trait is in scope
help: trait `Bar` which provides `method` is implemented but not in scope; perhaps you want to import it
|
2023-03-18 02:18:39 +00:00
LL + use inner::Bar;
|
error: aborting due to 1 previous error
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0624`.