]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0034]: multiple applicable items in scope |
0731742a | 2 | --> $DIR/issue-18446.rs:18:7 |
8faf50e0 | 3 | | |
532ac7d7 | 4 | LL | x.foo(); |
94222f64 | 5 | | ^^^ multiple `foo` found |
8faf50e0 | 6 | | |
ba9703b0 | 7 | note: candidate #1 is defined in an impl for the type `(dyn T + 'a)` |
0731742a | 8 | --> $DIR/issue-18446.rs:9:5 |
8faf50e0 XL |
9 | | |
10 | LL | fn foo(&self) {} | |
11 | | ^^^^^^^^^^^^^ | |
12 | note: candidate #2 is defined in the trait `T` | |
0731742a | 13 | --> $DIR/issue-18446.rs:5:5 |
8faf50e0 XL |
14 | | |
15 | LL | fn foo(&self); | |
16 | | ^^^^^^^^^^^^^^ | |
9ffffee4 | 17 | help: disambiguate the method for candidate #2 |
94222f64 XL |
18 | | |
19 | LL | T::foo(&x); | |
20 | | ~~~~~~~~~~ | |
8faf50e0 XL |
21 | |
22 | error: aborting due to previous error | |
23 | ||
24 | For more information about this error, try `rustc --explain E0034`. |