]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/suggest-fully-qualified-path-with-appropriate-params.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / traits / suggest-fully-qualified-path-with-appropriate-params.stderr
CommitLineData
04454e1e
FG
1error[E0282]: type annotations needed
2 --> $DIR/suggest-fully-qualified-path-with-appropriate-params.rs:20:11
3 |
4LL | thing.method();
5 | ------^^^^^^--
6 | | |
7 | | cannot infer type for type parameter `T` declared on the trait `Method`
8 | this method call resolves to `T`
9
10error[E0283]: type annotations needed
11 --> $DIR/suggest-fully-qualified-path-with-appropriate-params.rs:20:11
12 |
13LL | thing.method();
14 | ------^^^^^^--
15 | | |
16 | | cannot infer type for type parameter `T` declared on the trait `Method`
17 | this method call resolves to `T`
18 |
19note: multiple `impl`s satisfying `Thing: Method<_>` found
20 --> $DIR/suggest-fully-qualified-path-with-appropriate-params.rs:8:1
21 |
22LL | impl Method<i32> for Thing {
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
24...
25LL | impl Method<u32> for Thing {
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
27help: use the fully qualified path for the potential candidates
28 |
29LL | <Thing as Method<i32>>::method(&thing);
30 | ++++++++++++++++++++++++++++++++ ~
31LL | <Thing as Method<u32>>::method(&thing);
32 | ++++++++++++++++++++++++++++++++ ~
33
34error[E0283]: type annotations needed
35 --> $DIR/suggest-fully-qualified-path-with-appropriate-params.rs:23:11
36 |
37LL | thing.mut_method();
38 | ------^^^^^^^^^^--
39 | | |
40 | | cannot infer type for type parameter `T` declared on the trait `Method`
41 | this method call resolves to `T`
42 |
43note: multiple `impl`s satisfying `Thing: Method<_>` found
44 --> $DIR/suggest-fully-qualified-path-with-appropriate-params.rs:8:1
45 |
46LL | impl Method<i32> for Thing {
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
48...
49LL | impl Method<u32> for Thing {
50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
51help: use the fully qualified path for the potential candidates
52 |
53LL | <Thing as Method<i32>>::mut_method(&mut thing);
54 | +++++++++++++++++++++++++++++++++++++++ ~
55LL | <Thing as Method<u32>>::mut_method(&mut thing);
56 | +++++++++++++++++++++++++++++++++++++++ ~
57
58error: aborting due to 3 previous errors
59
60Some errors have detailed explanations: E0282, E0283.
61For more information about an error, try `rustc --explain E0282`.