fork/rust

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

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

master
6.0 KiB186 linesraw
1error[E0282]: type annotations needed
2  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:45:11
3   |
4LL |     thing.method();
5   |           ^^^^^^
6   |
7help: try using a fully qualified path to specify the expected types
8   |
9LL |     <Thing as Method<T>>::method(&thing);
10   |     ++++++++++++++++++++++++++++++     ~
11
12error[E0283]: type annotations needed
13  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:45:11
14   |
15LL |     thing.method();
16   |           ^^^^^^
17   |
18note: multiple `impl`s satisfying `Thing: Method<_>` found
19  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
20   |
21LL | impl Method<i32> for Thing {
22   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
23...
24LL | impl Method<u32> for Thing {
25   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
26help: try using a fully qualified path to specify the expected types
27   |
28LL |     <Thing as Method<T>>::method(&thing);
29   |     ++++++++++++++++++++++++++++++     ~
30
31error[E0283]: type annotations needed
32  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:48:11
33   |
34LL |     thing.mut_method();
35   |           ^^^^^^^^^^
36   |
37note: multiple `impl`s satisfying `Thing: Method<_>` found
38  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
39   |
40LL | impl Method<i32> for Thing {
41   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
42...
43LL | impl Method<u32> for Thing {
44   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
45help: try using a fully qualified path to specify the expected types
46   |
47LL |     <Thing as Method<T>>::mut_method(&mut thing);
48   |     +++++++++++++++++++++++++++++++++++++      ~
49
50error[E0283]: type annotations needed
51  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:49:11
52   |
53LL |     thing.by_self();
54   |           ^^^^^^^
55   |
56note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found
57  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:22:1
58   |
59LL | impl MethodRef<i32> for &Thing {
60   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61...
62LL | impl MethodRef<u32> for &Thing {
63   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64help: try using a fully qualified path to specify the expected types
65   |
66LL |     <&Thing as MethodRef<T>>::by_self(&thing);
67   |     +++++++++++++++++++++++++++++++++++     ~
68
69error[E0283]: type annotations needed
70  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:52:14
71   |
72LL |     deref_to.method();
73   |              ^^^^^^
74   |
75note: multiple `impl`s satisfying `Thing: Method<_>` found
76  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
77   |
78LL | impl Method<i32> for Thing {
79   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
80...
81LL | impl Method<u32> for Thing {
82   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
83help: try using a fully qualified path to specify the expected types
84   |
85LL |     <Thing as Method<T>>::method(&deref_to);
86   |     ++++++++++++++++++++++++++++++        ~
87
88error[E0283]: type annotations needed
89  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:53:14
90   |
91LL |     deref_to.mut_method();
92   |              ^^^^^^^^^^
93   |
94note: multiple `impl`s satisfying `Thing: Method<_>` found
95  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
96   |
97LL | impl Method<i32> for Thing {
98   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
99...
100LL | impl Method<u32> for Thing {
101   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
102help: try using a fully qualified path to specify the expected types
103   |
104LL |     <Thing as Method<T>>::mut_method(&mut deref_to);
105   |     +++++++++++++++++++++++++++++++++++++         ~
106
107error[E0283]: type annotations needed
108  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:54:14
109   |
110LL |     deref_to.by_self();
111   |              ^^^^^^^
112   |
113note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found
114  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:22:1
115   |
116LL | impl MethodRef<i32> for &Thing {
117   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
118...
119LL | impl MethodRef<u32> for &Thing {
120   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
121help: try using a fully qualified path to specify the expected types
122   |
123LL |     <&Thing as MethodRef<T>>::by_self(&deref_to);
124   |     +++++++++++++++++++++++++++++++++++        ~
125
126error[E0283]: type annotations needed
127  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:57:20
128   |
129LL |     deref_deref_to.method();
130   |                    ^^^^^^
131   |
132note: multiple `impl`s satisfying `Thing: Method<_>` found
133  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
134   |
135LL | impl Method<i32> for Thing {
136   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
137...
138LL | impl Method<u32> for Thing {
139   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
140help: try using a fully qualified path to specify the expected types
141   |
142LL |     <Thing as Method<T>>::method(&deref_deref_to);
143   |     ++++++++++++++++++++++++++++++              ~
144
145error[E0283]: type annotations needed
146  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:58:20
147   |
148LL |     deref_deref_to.mut_method();
149   |                    ^^^^^^^^^^
150   |
151note: multiple `impl`s satisfying `Thing: Method<_>` found
152  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:10:1
153   |
154LL | impl Method<i32> for Thing {
155   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
156...
157LL | impl Method<u32> for Thing {
158   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
159help: try using a fully qualified path to specify the expected types
160   |
161LL |     <Thing as Method<T>>::mut_method(&mut deref_deref_to);
162   |     +++++++++++++++++++++++++++++++++++++               ~
163
164error[E0283]: type annotations needed
165  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:59:20
166   |
167LL |     deref_deref_to.by_self();
168   |                    ^^^^^^^
169   |
170note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found
171  --> $DIR/suggest-fully-qualified-path-with-adjustment.rs:22:1
172   |
173LL | impl MethodRef<i32> for &Thing {
174   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
175...
176LL | impl MethodRef<u32> for &Thing {
177   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
178help: try using a fully qualified path to specify the expected types
179   |
180LL |     <&Thing as MethodRef<T>>::by_self(&deref_deref_to);
181   |     +++++++++++++++++++++++++++++++++++              ~
182
183error: aborting due to 10 previous errors
184
185Some errors have detailed explanations: E0282, E0283.
186For more information about an error, try `rustc --explain E0282`.