fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
828 B18 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   |
7note: candidate #1 is defined in an impl of the trait `Me2` for the type `usize`
8  --> $DIR/method-ambig-two-traits-cross-crate.rs:10:22
9   |
10LL | impl Me2 for usize { fn me(&self) -> usize { *self } }
11   |                      ^^^^^^^^^^^^^^^^^^^^^
12   = help: to disambiguate the method call, write `Me2::me(1_usize)` instead
13   = note: candidate #2 is defined in an impl of the trait `ambig_impl_2_lib::Me` for the type `usize`
14   = help: to disambiguate the method call, write `ambig_impl_2_lib::Me::me(1_usize)` instead
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0034`.