Files
rust/tests/ui/span/issue-37767.stderr

85 lines
1.9 KiB
Plaintext
Raw Normal View History

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