]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0034.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / error-codes / E0034.stderr
1 error[E0034]: multiple applicable items in scope
2   --> $DIR/E0034.rs:30:5
3    |
4 LL |     Test::foo() //~ ERROR multiple applicable items in scope
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:22: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:26:5
14    |
15 LL |     fn foo() {}
16    |     ^^^^^^^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0034`.