fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
1.7 KiB60 linesraw
1error[E0034]: multiple applicable items in scope
2  --> $DIR/issue-37767.rs:10:7
3   |
4LL |     a.foo()
5   |       ^^^ multiple `foo` found
6   |
7note: candidate #1 is defined in the trait `A`
8  --> $DIR/issue-37767.rs:2:5
9   |
10LL |     fn foo(&mut self) {}
11   |     ^^^^^^^^^^^^^^^^^
12   = help: to disambiguate the method call, write `A::foo(&a)` instead
13note: candidate #2 is defined in the trait `B`
14  --> $DIR/issue-37767.rs:6:5
15   |
16LL |     fn foo(&mut self) {}
17   |     ^^^^^^^^^^^^^^^^^
18   = help: to disambiguate the method call, write `B::foo(&a)` instead
19
20error[E0034]: multiple applicable items in scope
21  --> $DIR/issue-37767.rs:22:7
22   |
23LL |     a.foo()
24   |       ^^^ multiple `foo` found
25   |
26note: candidate #1 is defined in the trait `C`
27  --> $DIR/issue-37767.rs:14:5
28   |
29LL |     fn foo(&self) {}
30   |     ^^^^^^^^^^^^^
31   = help: to disambiguate the method call, write `C::foo(&a)` instead
32note: candidate #2 is defined in the trait `D`
33  --> $DIR/issue-37767.rs:18:5
34   |
35LL |     fn foo(&self) {}
36   |     ^^^^^^^^^^^^^
37   = help: to disambiguate the method call, write `D::foo(&a)` instead
38
39error[E0034]: multiple applicable items in scope
40  --> $DIR/issue-37767.rs:34:7
41   |
42LL |     a.foo()
43   |       ^^^ multiple `foo` found
44   |
45note: candidate #1 is defined in the trait `E`
46  --> $DIR/issue-37767.rs:26:5
47   |
48LL |     fn foo(self) {}
49   |     ^^^^^^^^^^^^
50   = help: to disambiguate the method call, write `E::foo(a)` instead
51note: candidate #2 is defined in the trait `F`
52  --> $DIR/issue-37767.rs:30:5
53   |
54LL |     fn foo(self) {}
55   |     ^^^^^^^^^^^^
56   = help: to disambiguate the method call, write `F::foo(a)` instead
57
58error: aborting due to 3 previous errors
59
60For more information about this error, try `rustc --explain E0034`.