1 error[E0282]: type annotations needed
2 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:45:15
4 LL | ref_thing.method();
7 help: try using a fully qualified path to specify the expected types
9 LL | <Thing as Method<T>>::method(ref_thing);
10 | +++++++++++++++++++++++++++++ ~
12 error[E0283]: type annotations needed
13 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:45:15
15 LL | ref_thing.method();
18 note: multiple `impl`s satisfying `Thing: Method<_>` found
19 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:10:1
21 LL | impl Method<i32> for Thing {
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
24 LL | impl Method<u32> for Thing {
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
26 help: try using a fully qualified path to specify the expected types
28 LL | <Thing as Method<T>>::method(ref_thing);
29 | +++++++++++++++++++++++++++++ ~
31 error[E0283]: type annotations needed
32 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:48:15
34 LL | ref_thing.by_self();
37 note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found
38 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:23:1
40 LL | impl MethodRef<i32> for &Thing {
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43 LL | impl MethodRef<u32> for &Thing {
44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45 help: try using a fully qualified path to specify the expected types
47 LL | <&Thing as MethodRef<T>>::by_self(ref_thing);
48 | ++++++++++++++++++++++++++++++++++ ~
50 error[E0283]: type annotations needed
51 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:51:15
53 LL | mut_thing.method();
56 note: multiple `impl`s satisfying `Thing: Method<_>` found
57 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:10:1
59 LL | impl Method<i32> for Thing {
60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
62 LL | impl Method<u32> for Thing {
63 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
64 help: try using a fully qualified path to specify the expected types
66 LL | <Thing as Method<T>>::method(mut_thing);
67 | +++++++++++++++++++++++++++++ ~
69 error[E0283]: type annotations needed
70 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:52:15
72 LL | mut_thing.mut_method();
75 note: multiple `impl`s satisfying `Thing: Method<_>` found
76 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:10:1
78 LL | impl Method<i32> for Thing {
79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
81 LL | impl Method<u32> for Thing {
82 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
83 help: try using a fully qualified path to specify the expected types
85 LL | <Thing as Method<T>>::mut_method(mut_thing);
86 | +++++++++++++++++++++++++++++++++ ~
88 error[E0283]: type annotations needed
89 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:53:15
91 LL | mut_thing.by_self();
94 note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found
95 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:23:1
97 LL | impl MethodRef<i32> for &Thing {
98 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
100 LL | impl MethodRef<u32> for &Thing {
101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102 help: try using a fully qualified path to specify the expected types
104 LL | <&Thing as MethodRef<T>>::by_self(mut_thing);
105 | ++++++++++++++++++++++++++++++++++ ~
107 error[E0283]: type annotations needed
108 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:56:14
110 LL | deref_to.method();
113 note: multiple `impl`s satisfying `Thing: Method<_>` found
114 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:10:1
116 LL | impl Method<i32> for Thing {
117 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
119 LL | impl Method<u32> for Thing {
120 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
121 help: try using a fully qualified path to specify the expected types
123 LL | <Thing as Method<T>>::method(deref_to);
124 | +++++++++++++++++++++++++++++ ~
126 error[E0283]: type annotations needed
127 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:57:14
129 LL | deref_to.mut_method();
132 note: multiple `impl`s satisfying `Thing: Method<_>` found
133 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:10:1
135 LL | impl Method<i32> for Thing {
136 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
138 LL | impl Method<u32> for Thing {
139 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
140 help: try using a fully qualified path to specify the expected types
142 LL | <Thing as Method<T>>::mut_method(deref_to);
143 | +++++++++++++++++++++++++++++++++ ~
145 error[E0283]: type annotations needed
146 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:58:14
148 LL | deref_to.by_self();
151 note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found
152 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:23:1
154 LL | impl MethodRef<i32> for &Thing {
155 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
157 LL | impl MethodRef<u32> for &Thing {
158 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
159 help: try using a fully qualified path to specify the expected types
161 LL | <&Thing as MethodRef<T>>::by_self(deref_to);
162 | ++++++++++++++++++++++++++++++++++ ~
164 error[E0283]: type annotations needed
165 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:61:20
167 LL | deref_deref_to.method();
170 note: multiple `impl`s satisfying `Thing: Method<_>` found
171 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:10:1
173 LL | impl Method<i32> for Thing {
174 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
176 LL | impl Method<u32> for Thing {
177 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
178 help: try using a fully qualified path to specify the expected types
180 LL | <Thing as Method<T>>::method(deref_deref_to);
181 | +++++++++++++++++++++++++++++ ~
183 error[E0283]: type annotations needed
184 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:62:20
186 LL | deref_deref_to.mut_method();
189 note: multiple `impl`s satisfying `Thing: Method<_>` found
190 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:10:1
192 LL | impl Method<i32> for Thing {
193 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
195 LL | impl Method<u32> for Thing {
196 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
197 help: try using a fully qualified path to specify the expected types
199 LL | <Thing as Method<T>>::mut_method(deref_deref_to);
200 | +++++++++++++++++++++++++++++++++ ~
202 error[E0283]: type annotations needed
203 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:63:20
205 LL | deref_deref_to.by_self();
208 note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found
209 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:23:1
211 LL | impl MethodRef<i32> for &Thing {
212 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
214 LL | impl MethodRef<u32> for &Thing {
215 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
216 help: try using a fully qualified path to specify the expected types
218 LL | <&Thing as MethodRef<T>>::by_self(deref_deref_to);
219 | ++++++++++++++++++++++++++++++++++ ~
221 error: aborting due to 12 previous errors
223 Some errors have detailed explanations: E0282, E0283.
224 For more information about an error, try `rustc --explain E0282`.