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