]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0034]: multiple applicable items in scope |
0731742a | 2 | --> $DIR/method-ambig-two-traits-cross-crate.rs:11:21 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | fn main() { 1_usize.me(); } |
b7449926 XL |
5 | | ^^ multiple `me` found |
6 | | | |
0731742a XL |
7 | note: 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 | |
b7449926 | 9 | | |
0731742a | 10 | LL | impl Me2 for usize { fn me(&self) -> usize { *self } } |
b7449926 | 11 | | ^^^^^^^^^^^^^^^^^^^^^ |
0731742a | 12 | = note: candidate #2 is defined in an impl of the trait `ambig_impl_2_lib::Me` for the type `usize` |
ba9703b0 | 13 | help: disambiguate the associated function for candidate #1 |
dfeec247 XL |
14 | | |
15 | LL | fn main() { Me2::me(&1_usize); } | |
16 | | ^^^^^^^^^^^^^^^^^ | |
ba9703b0 | 17 | help: disambiguate the associated function for candidate #2 |
dfeec247 XL |
18 | | |
19 | LL | fn main() { ambig_impl_2_lib::Me::me(&1_usize); } | |
20 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
21 | |
22 | error: aborting due to previous error | |
23 | ||
24 | For more information about this error, try `rustc --explain E0034`. |