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
574 B
Plaintext
Raw Normal View History

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