]>
Commit | Line | Data |
---|---|---|
32a655c1 | 1 | error[E0034]: multiple applicable items in scope |
0731742a | 2 | --> $DIR/issue-37767.rs:10:7 |
32a655c1 | 3 | | |
532ac7d7 | 4 | LL | a.foo() |
32a655c1 SL |
5 | | ^^^ multiple `foo` found |
6 | | | |
7 | note: candidate #1 is defined in the trait `A` | |
0731742a | 8 | --> $DIR/issue-37767.rs:2:5 |
32a655c1 | 9 | | |
0531ce1d | 10 | LL | fn foo(&mut self) {} |
ff7c6d11 | 11 | | ^^^^^^^^^^^^^^^^^ |
32a655c1 | 12 | note: candidate #2 is defined in the trait `B` |
0731742a | 13 | --> $DIR/issue-37767.rs:6:5 |
32a655c1 | 14 | | |
0531ce1d | 15 | LL | fn foo(&mut self) {} |
ff7c6d11 | 16 | | ^^^^^^^^^^^^^^^^^ |
ba9703b0 | 17 | help: disambiguate the associated function for candidate #1 |
dfeec247 XL |
18 | | |
19 | LL | A::foo(&a) | |
94222f64 | 20 | | ~~~~~~~~~~ |
ba9703b0 | 21 | help: disambiguate the associated function for candidate #2 |
dfeec247 XL |
22 | | |
23 | LL | B::foo(&a) | |
94222f64 | 24 | | ~~~~~~~~~~ |
32a655c1 SL |
25 | |
26 | error[E0034]: multiple applicable items in scope | |
0731742a | 27 | --> $DIR/issue-37767.rs:22:7 |
32a655c1 | 28 | | |
532ac7d7 | 29 | LL | a.foo() |
32a655c1 SL |
30 | | ^^^ multiple `foo` found |
31 | | | |
32 | note: candidate #1 is defined in the trait `C` | |
0731742a | 33 | --> $DIR/issue-37767.rs:14:5 |
32a655c1 | 34 | | |
0531ce1d | 35 | LL | fn foo(&self) {} |
ff7c6d11 | 36 | | ^^^^^^^^^^^^^ |
32a655c1 | 37 | note: candidate #2 is defined in the trait `D` |
0731742a | 38 | --> $DIR/issue-37767.rs:18:5 |
32a655c1 | 39 | | |
0531ce1d | 40 | LL | fn foo(&self) {} |
ff7c6d11 | 41 | | ^^^^^^^^^^^^^ |
ba9703b0 | 42 | help: disambiguate the associated function for candidate #1 |
dfeec247 XL |
43 | | |
44 | LL | C::foo(&a) | |
94222f64 | 45 | | ~~~~~~~~~~ |
ba9703b0 | 46 | help: disambiguate the associated function for candidate #2 |
dfeec247 XL |
47 | | |
48 | LL | D::foo(&a) | |
94222f64 | 49 | | ~~~~~~~~~~ |
32a655c1 SL |
50 | |
51 | error[E0034]: multiple applicable items in scope | |
0731742a | 52 | --> $DIR/issue-37767.rs:34:7 |
32a655c1 | 53 | | |
532ac7d7 | 54 | LL | a.foo() |
32a655c1 SL |
55 | | ^^^ multiple `foo` found |
56 | | | |
57 | note: candidate #1 is defined in the trait `E` | |
0731742a | 58 | --> $DIR/issue-37767.rs:26:5 |
32a655c1 | 59 | | |
0531ce1d | 60 | LL | fn foo(self) {} |
ff7c6d11 | 61 | | ^^^^^^^^^^^^ |
32a655c1 | 62 | note: candidate #2 is defined in the trait `F` |
0731742a | 63 | --> $DIR/issue-37767.rs:30:5 |
32a655c1 | 64 | | |
0531ce1d | 65 | LL | fn foo(self) {} |
ff7c6d11 | 66 | | ^^^^^^^^^^^^ |
ba9703b0 | 67 | help: disambiguate the associated function for candidate #1 |
dfeec247 XL |
68 | | |
69 | LL | E::foo(a) | |
94222f64 | 70 | | ~~~~~~~~~ |
ba9703b0 | 71 | help: disambiguate the associated function for candidate #2 |
dfeec247 XL |
72 | | |
73 | LL | F::foo(a) | |
94222f64 | 74 | | ~~~~~~~~~ |
32a655c1 | 75 | |
041b39d2 | 76 | error: aborting due to 3 previous errors |
32a655c1 | 77 | |
0531ce1d | 78 | For more information about this error, try `rustc --explain E0034`. |