]> git.proxmox.com Git - rustc.git/blame - tests/ui/issues/issue-18446.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / issues / issue-18446.stderr
CommitLineData
8faf50e0 1error[E0034]: multiple applicable items in scope
0731742a 2 --> $DIR/issue-18446.rs:18:7
8faf50e0 3 |
532ac7d7 4LL | x.foo();
94222f64 5 | ^^^ multiple `foo` found
8faf50e0 6 |
ba9703b0 7note: candidate #1 is defined in an impl for the type `(dyn T + 'a)`
0731742a 8 --> $DIR/issue-18446.rs:9:5
8faf50e0
XL
9 |
10LL | fn foo(&self) {}
11 | ^^^^^^^^^^^^^
12note: candidate #2 is defined in the trait `T`
0731742a 13 --> $DIR/issue-18446.rs:5:5
8faf50e0
XL
14 |
15LL | fn foo(&self);
16 | ^^^^^^^^^^^^^^
9ffffee4 17help: disambiguate the method for candidate #2
94222f64
XL
18 |
19LL | T::foo(&x);
20 | ~~~~~~~~~~
8faf50e0
XL
21
22error: aborting due to previous error
23
24For more information about this error, try `rustc --explain E0034`.