fork/rust

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

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

master
887 B24 linesraw
1error[E0034]: multiple applicable items in scope
2  --> $DIR/method-ambig-two-traits-cross-crate.rs:11:21
3   |
4LL | fn main() { 1_usize.me(); }
5   |                     ^^ multiple `me` found
6   |
7   = note: candidate #1 is defined in an impl of the trait `Me` for the type `usize`
8note: candidate #2 is defined in an impl of the trait `Me2` for the type `usize`
9  --> $DIR/method-ambig-two-traits-cross-crate.rs:10:22
10   |
11LL | impl Me2 for usize { fn me(&self) -> usize { *self } }
12   |                      ^^^^^^^^^^^^^^^^^^^^^
13help: disambiguate the method for candidate #1
14   |
15LL | fn main() { Me::me(&1_usize); }
16   |             ~~~~~~~~~~~~~~~~
17help: disambiguate the method for candidate #2
18   |
19LL | fn main() { Me2::me(&1_usize); }
20   |             ~~~~~~~~~~~~~~~~~
21
22error: aborting due to previous error
23
24For more information about this error, try `rustc --explain E0034`.