]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/do-not-mention-type-params-by-name-in-suggestion-issue-96292.stderr
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / traits / do-not-mention-type-params-by-name-in-suggestion-issue-96292.stderr
1 error[E0282]: 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 help: try using a fully qualified path to specify the expected types
8    |
9 LL |     <Thing<bool> as Method<T>>::method(thing, 42);
10    |     +++++++++++++++++++++++++++++++++++     ~
11
12 error[E0283]: type annotations needed
13   --> $DIR/do-not-mention-type-params-by-name-in-suggestion-issue-96292.rs:17:11
14    |
15 LL |     thing.method(42);
16    |           ^^^^^^
17    |
18 note: multiple `impl`s satisfying `Thing<bool>: Method<_>` found
19   --> $DIR/do-not-mention-type-params-by-name-in-suggestion-issue-96292.rs:7:1
20    |
21 LL | impl<X> Method<i32> for Thing<X> {
22    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 ...
24 LL | impl<X> Method<u32> for Thing<X> {
25    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 help: try using a fully qualified path to specify the expected types
27    |
28 LL |     <Thing<bool> as Method<T>>::method(thing, 42);
29    |     +++++++++++++++++++++++++++++++++++     ~
30
31 error: aborting due to 2 previous errors
32
33 Some errors have detailed explanations: E0282, E0283.
34 For more information about an error, try `rustc --explain E0282`.