fork/rust

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

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

master
701 B20 linesraw
1error[E0599]: no method named `method` found for struct `S` in the current scope
2  --> $DIR/overlapping_pub_trait.rs:12:7
3   |
4LL |     S.method();
5   |       ^^^^^^ method not found in `S`
6   |
7  ::: $DIR/auxiliary/overlapping_pub_trait_source.rs:11:23
8   |
9LL |     pub trait Tr { fn method(&self); }
10   |                       ------ the method is available for `S` here
11   |
12   = help: items from traits can only be used if the trait is in scope
13help: the following trait is implemented but not in scope; perhaps add a `use` for it:
14   |
15LL + use overlapping_pub_trait_source::m::Tr;
16   |
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0599`.