]> git.proxmox.com Git - rustc.git/blob - 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
1 error[E0283]: type annotations needed
2 --> $DIR/do-not-mention-type-params-by-name-in-suggestion-issue-96292.rs:17:11
3 |
4 LL | thing.method(42);
5 | ^^^^^^
6 |
7 note: 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 |
10 LL | impl<X> Method<i32> for Thing<X> {
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 ...
13 LL | impl<X> Method<u32> for Thing<X> {
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 help: try using a fully qualified path to specify the expected types
16 |
17 LL | <Thing<bool> as Method<T>>::method(thing, 42);
18 | +++++++++++++++++++++++++++++++++++ ~
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0283`.