2016-12-04 20:10:59 -06:00
|
|
|
error[E0034]: multiple applicable items in scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-37767.rs:10:7
|
2016-12-04 20:10:59 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | a.foo() //~ ERROR multiple applicable items
|
2016-12-04 20:10:59 -06:00
|
|
|
| ^^^ multiple `foo` found
|
|
|
|
|
|
|
|
|
note: candidate #1 is defined in the trait `A`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-37767.rs:2:5
|
2016-12-04 20:10:59 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo(&mut self) {}
|
2017-12-19 17:36:04 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2016-12-04 20:10:59 -06:00
|
|
|
= help: to disambiguate the method call, write `A::foo(&a)` instead
|
|
|
|
note: candidate #2 is defined in the trait `B`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-37767.rs:6:5
|
2016-12-04 20:10:59 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo(&mut self) {}
|
2017-12-19 17:36:04 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2016-12-04 20:10:59 -06:00
|
|
|
= help: to disambiguate the method call, write `B::foo(&a)` instead
|
|
|
|
|
|
|
|
error[E0034]: multiple applicable items in scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-37767.rs:22:7
|
2016-12-04 20:10:59 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | a.foo() //~ ERROR multiple applicable items
|
2016-12-04 20:10:59 -06:00
|
|
|
| ^^^ multiple `foo` found
|
|
|
|
|
|
|
|
|
note: candidate #1 is defined in the trait `C`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-37767.rs:14:5
|
2016-12-04 20:10:59 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo(&self) {}
|
2017-12-19 17:36:04 -06:00
|
|
|
| ^^^^^^^^^^^^^
|
2016-12-04 20:10:59 -06:00
|
|
|
= help: to disambiguate the method call, write `C::foo(&a)` instead
|
|
|
|
note: candidate #2 is defined in the trait `D`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-37767.rs:18:5
|
2016-12-04 20:10:59 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo(&self) {}
|
2017-12-19 17:36:04 -06:00
|
|
|
| ^^^^^^^^^^^^^
|
2016-12-04 20:10:59 -06:00
|
|
|
= help: to disambiguate the method call, write `D::foo(&a)` instead
|
|
|
|
|
|
|
|
error[E0034]: multiple applicable items in scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-37767.rs:34:7
|
2016-12-04 20:10:59 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | a.foo() //~ ERROR multiple applicable items
|
2016-12-04 20:10:59 -06:00
|
|
|
| ^^^ multiple `foo` found
|
|
|
|
|
|
|
|
|
note: candidate #1 is defined in the trait `E`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-37767.rs:26:5
|
2016-12-04 20:10:59 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo(self) {}
|
2017-12-19 17:36:04 -06:00
|
|
|
| ^^^^^^^^^^^^
|
2016-12-04 20:10:59 -06:00
|
|
|
= help: to disambiguate the method call, write `E::foo(a)` instead
|
|
|
|
note: candidate #2 is defined in the trait `F`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-37767.rs:30:5
|
2016-12-04 20:10:59 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo(self) {}
|
2017-12-19 17:36:04 -06:00
|
|
|
| ^^^^^^^^^^^^
|
2016-12-04 20:10:59 -06:00
|
|
|
= help: to disambiguate the method call, write `F::foo(a)` instead
|
|
|
|
|
2017-07-02 05:49:30 -05:00
|
|
|
error: aborting due to 3 previous errors
|
2016-12-04 20:10:59 -06:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0034`.
|