]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-37767.stderr
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / span / issue-37767.stderr
1 error[E0034]: multiple applicable items in scope
2   --> $DIR/issue-37767.rs:10:7
3    |
4 LL |     a.foo()
5    |       ^^^ multiple `foo` found
6    |
7 note: candidate #1 is defined in the trait `A`
8   --> $DIR/issue-37767.rs:2:5
9    |
10 LL |     fn foo(&mut self) {}
11    |     ^^^^^^^^^^^^^^^^^
12 note: candidate #2 is defined in the trait `B`
13   --> $DIR/issue-37767.rs:6:5
14    |
15 LL |     fn foo(&mut self) {}
16    |     ^^^^^^^^^^^^^^^^^
17 help: disambiguate the associated function for candidate #1
18    |
19 LL |     A::foo(&a)
20    |     ~~~~~~~~~~
21 help: disambiguate the associated function for candidate #2
22    |
23 LL |     B::foo(&a)
24    |     ~~~~~~~~~~
25
26 error[E0034]: multiple applicable items in scope
27   --> $DIR/issue-37767.rs:22:7
28    |
29 LL |     a.foo()
30    |       ^^^ multiple `foo` found
31    |
32 note: candidate #1 is defined in the trait `C`
33   --> $DIR/issue-37767.rs:14:5
34    |
35 LL |     fn foo(&self) {}
36    |     ^^^^^^^^^^^^^
37 note: candidate #2 is defined in the trait `D`
38   --> $DIR/issue-37767.rs:18:5
39    |
40 LL |     fn foo(&self) {}
41    |     ^^^^^^^^^^^^^
42 help: disambiguate the associated function for candidate #1
43    |
44 LL |     C::foo(&a)
45    |     ~~~~~~~~~~
46 help: disambiguate the associated function for candidate #2
47    |
48 LL |     D::foo(&a)
49    |     ~~~~~~~~~~
50
51 error[E0034]: multiple applicable items in scope
52   --> $DIR/issue-37767.rs:34:7
53    |
54 LL |     a.foo()
55    |       ^^^ multiple `foo` found
56    |
57 note: candidate #1 is defined in the trait `E`
58   --> $DIR/issue-37767.rs:26:5
59    |
60 LL |     fn foo(self) {}
61    |     ^^^^^^^^^^^^
62 note: candidate #2 is defined in the trait `F`
63   --> $DIR/issue-37767.rs:30:5
64    |
65 LL |     fn foo(self) {}
66    |     ^^^^^^^^^^^^
67 help: disambiguate the associated function for candidate #1
68    |
69 LL |     E::foo(a)
70    |     ~~~~~~~~~
71 help: disambiguate the associated function for candidate #2
72    |
73 LL |     F::foo(a)
74    |     ~~~~~~~~~
75
76 error: aborting due to 3 previous errors
77
78 For more information about this error, try `rustc --explain E0034`.