]> git.proxmox.com Git - rustc.git/blob - src/test/ui/methods/method-ambig-two-traits-cross-crate.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / methods / method-ambig-two-traits-cross-crate.stderr
1 error[E0034]: multiple applicable items in scope
2 --> $DIR/method-ambig-two-traits-cross-crate.rs:11:21
3 |
4 LL | fn main() { 1_usize.me(); }
5 | ^^ multiple `me` found
6 |
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
9 |
10 LL | impl Me2 for usize { fn me(&self) -> usize { *self } }
11 | ^^^^^^^^^^^^^^^^^^^^^
12 = note: candidate #2 is defined in an impl of the trait `Me` for the type `usize`
13 help: disambiguate the associated function for candidate #1
14 |
15 LL | fn main() { Me2::me(&1_usize); }
16 | ^^^^^^^^^^^^^^^^^
17 help: disambiguate the associated function for candidate #2
18 |
19 LL | fn main() { Me::me(&1_usize); }
20 | ^^^^^^^^^^^^^^^^
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0034`.