]> git.proxmox.com Git - rustc.git/blame - tests/ui/traits/do-not-mention-type-params-by-name-in-suggestion-issue-96292.stderr
New upstream version 1.75.0+dfsg1
[rustc.git] / tests / ui / traits / do-not-mention-type-params-by-name-in-suggestion-issue-96292.stderr
CommitLineData
04454e1e
FG
1error[E0283]: type annotations needed
2 --> $DIR/do-not-mention-type-params-by-name-in-suggestion-issue-96292.rs:17:11
3 |
4LL | thing.method(42);
923072b8 5 | ^^^^^^
04454e1e
FG
6 |
7note: multiple `impl`s satisfying `Thing<bool>: Method<_>` found
8 --> $DIR/do-not-mention-type-params-by-name-in-suggestion-issue-96292.rs:7:1
9 |
10LL | impl<X> Method<i32> for Thing<X> {
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12...
13LL | impl<X> Method<u32> for Thing<X> {
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
923072b8 15help: try using a fully qualified path to specify the expected types
04454e1e 16 |
923072b8
FG
17LL | <Thing<bool> as Method<T>>::method(thing, 42);
18 | +++++++++++++++++++++++++++++++++++ ~
04454e1e 19
ed00b5ec 20error: aborting due to previous error
04454e1e 21
ed00b5ec 22For more information about this error, try `rustc --explain E0283`.