fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
535 B18 linesraw
1error[E0624]: method `method` is private
2  --> $DIR/method-private.rs:19:9
3   |
4LL |         fn method(&self) {}
5   |         ---------------- private method defined here
6...
7LL |     foo.method();
8   |         ^^^^^^ private method
9   |
10   = help: items from traits can only be used if the trait is in scope
11help: the following trait is implemented but not in scope; perhaps add a `use` for it:
12   |
13LL + use inner::Bar;
14   |
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0624`.