]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0034]: multiple applicable items in scope |
0731742a | 2 | --> $DIR/method-ambig-two-traits-from-bounds.rs:5:7 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | t.foo(); |
b7449926 XL |
5 | | ^^^ multiple `foo` found |
6 | | | |
7 | note: candidate #1 is defined in the trait `A` | |
0731742a | 8 | --> $DIR/method-ambig-two-traits-from-bounds.rs:1:11 |
b7449926 XL |
9 | | |
10 | LL | trait A { fn foo(&self); } | |
11 | | ^^^^^^^^^^^^^^ | |
b7449926 | 12 | note: candidate #2 is defined in the trait `B` |
0731742a | 13 | --> $DIR/method-ambig-two-traits-from-bounds.rs:2:11 |
b7449926 XL |
14 | | |
15 | LL | trait B { fn foo(&self); } | |
16 | | ^^^^^^^^^^^^^^ | |
ba9703b0 | 17 | help: disambiguate the associated function for candidate #1 |
dfeec247 XL |
18 | | |
19 | LL | A::foo(t); | |
20 | | ^^^^^^^^^ | |
ba9703b0 | 21 | help: disambiguate the associated function for candidate #2 |
dfeec247 XL |
22 | | |
23 | LL | B::foo(t); | |
24 | | ^^^^^^^^^ | |
b7449926 XL |
25 | |
26 | error: aborting due to previous error | |
27 | ||
28 | For more information about this error, try `rustc --explain E0034`. |