]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/not-suggest-non-existing-fully-qualified-path.stderr
Rollup merge of #100709 - JhonnyBillM:port-expected-used-symbol-diagnostic, r=compile...
[rust.git] / src / test / ui / traits / not-suggest-non-existing-fully-qualified-path.stderr
1 error[E0282]: type annotations needed
2   --> $DIR/not-suggest-non-existing-fully-qualified-path.rs:21:7
3    |
4 LL |     a.method();
5    |       ^^^^^^
6    |
7 help: try using a fully qualified path to specify the expected types
8    |
9 LL |     <A<B> as V<U>>::method(a);
10    |     +++++++++++++++++++++++ ~
11
12 error[E0283]: type annotations needed
13   --> $DIR/not-suggest-non-existing-fully-qualified-path.rs:21:7
14    |
15 LL |     a.method();
16    |       ^^^^^^
17    |
18 note: multiple `impl`s satisfying `B: I<_>` found
19   --> $DIR/not-suggest-non-existing-fully-qualified-path.rs:5:1
20    |
21 LL | impl I<i32> for B {}
22    | ^^^^^^^^^^^^^^^^^
23 LL | impl I<u32> for B {}
24    | ^^^^^^^^^^^^^^^^^
25 note: required for `A<B>` to implement `V<_>`
26   --> $DIR/not-suggest-non-existing-fully-qualified-path.rs:12:12
27    |
28 LL | impl<T, U> V<U> for A<T>
29    |            ^^^^     ^^^^
30 help: try using a fully qualified path to specify the expected types
31    |
32 LL |     <A<B> as V<U>>::method(a);
33    |     +++++++++++++++++++++++ ~
34
35 error: aborting due to 2 previous errors
36
37 Some errors have detailed explanations: E0282, E0283.
38 For more information about an error, try `rustc --explain E0282`.