fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB41 linesraw
1error[E0282]: type annotations needed
2  --> $DIR/not-suggest-non-existing-fully-qualified-path.rs:21:7
3   |
4LL |     a.method();
5   |       ^^^^^^
6   |
7help: try using a fully qualified path to specify the expected types
8   |
9LL |     <A<B> as V<U>>::method(a);
10   |     +++++++++++++++++++++++ ~
11
12error[E0283]: type annotations needed
13  --> $DIR/not-suggest-non-existing-fully-qualified-path.rs:21:7
14   |
15LL |     a.method();
16   |       ^^^^^^
17   |
18note: multiple `impl`s satisfying `B: I<_>` found
19  --> $DIR/not-suggest-non-existing-fully-qualified-path.rs:5:1
20   |
21LL | impl I<i32> for B {}
22   | ^^^^^^^^^^^^^^^^^
23LL | impl I<u32> for B {}
24   | ^^^^^^^^^^^^^^^^^
25note: required for `A<B>` to implement `V<_>`
26  --> $DIR/not-suggest-non-existing-fully-qualified-path.rs:12:12
27   |
28LL | impl<T, U> V<U> for A<T>
29   |            ^^^^     ^^^^
30LL | where
31LL |     T: I<U>,
32   |        ---- unsatisfied trait bound introduced here
33help: try using a fully qualified path to specify the expected types
34   |
35LL |     <A<B> as V<U>>::method(a);
36   |     +++++++++++++++++++++++ ~
37
38error: aborting due to 2 previous errors
39
40Some errors have detailed explanations: E0282, E0283.
41For more information about an error, try `rustc --explain E0282`.