]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0034.stderr
Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup
[rust.git] / src / test / ui / error-codes / E0034.stderr
1 error[E0034]: multiple applicable items in scope
2   --> $DIR/E0034.rs:20:11
3    |
4 LL |     Test::foo()
5    |           ^^^ multiple `foo` found
6    |
7 note: candidate #1 is defined in an impl of the trait `Trait1` for the type `Test`
8   --> $DIR/E0034.rs:12:5
9    |
10 LL |     fn foo() {}
11    |     ^^^^^^^^
12 note: candidate #2 is defined in an impl of the trait `Trait2` for the type `Test`
13   --> $DIR/E0034.rs:16:5
14    |
15 LL |     fn foo() {}
16    |     ^^^^^^^^
17 help: disambiguate the associated function for candidate #1
18    |
19 LL |     Trait1::foo()
20    |     ~~~~~~~~
21 help: disambiguate the associated function for candidate #2
22    |
23 LL |     Trait2::foo()
24    |     ~~~~~~~~
25
26 error: aborting due to previous error
27
28 For more information about this error, try `rustc --explain E0034`.