rust/src/test/ui/error-codes/E0034.stderr

21 lines
612 B
Plaintext
Raw Normal View History

2018-02-08 03:35:35 +00:00
error[E0034]: multiple applicable items in scope
--> $DIR/E0034.rs:30:5
|
30 | Test::foo() //~ ERROR multiple applicable items in scope
| ^^^^^^^^^ multiple `foo` found
|
note: candidate #1 is defined in an impl of the trait `Trait1` for the type `Test`
--> $DIR/E0034.rs:22:5
|
22 | fn foo() {}
| ^^^^^^^^
note: candidate #2 is defined in an impl of the trait `Trait2` for the type `Test`
--> $DIR/E0034.rs:26:5
|
26 | fn foo() {}
| ^^^^^^^^
error: aborting due to previous error
2018-02-19 20:40:25 +00:00
If you want more information on this error, try using "rustc --explain E0034"