@@ -21,20 +21,20 @@ LL | String::from("x".as_ref());
21
21
- impl AsRef<str> for str;
22
22
help: try using a fully qualified path to specify the expected types
23
23
|
24
- LL | String::from(os_str::<impl AsRef<OsStr> for str >::as_ref("x"));
25
- | ++++++++++++++++++++++++++++++++++++++++++++ ~
24
+ LL | String::from(<str as AsRef<OsStr>>::as_ref("x"));
25
+ | ++++++++++++++++++++++++++++++ ~
26
26
help: try using a fully qualified path to specify the expected types
27
27
|
28
- LL | String::from(path::<impl AsRef<Path> for str >::as_ref("x"));
29
- | +++++++++++++++++++++++++++++++++++++++++ ~
28
+ LL | String::from(<str as AsRef<Path>>::as_ref("x"));
29
+ | +++++++++++++++++++++++++++++ ~
30
30
help: try using a fully qualified path to specify the expected types
31
31
|
32
32
LL | String::from(<str as AsRef<str>>::as_ref("x"));
33
33
| ++++++++++++++++++++++++++++ ~
34
34
help: try using a fully qualified path to specify the expected types
35
35
|
36
- LL | String::from(core::str::<impl AsRef<[u8]> for str >::as_ref("x"));
37
- | ++++++++++++++++++++++++++++++++++++++++++++++ ~
36
+ LL | String::from(<str as AsRef<[u8]>>::as_ref("x"));
37
+ | +++++++++++++++++++++++++++++ ~
38
38
39
39
error[E0283]: type annotations needed
40
40
--> $DIR/issue-72690.rs:12:9
@@ -59,20 +59,20 @@ LL | |x| String::from("x".as_ref());
59
59
- impl AsRef<str> for str;
60
60
help: try using a fully qualified path to specify the expected types
61
61
|
62
- LL | |x| String::from(os_str::<impl AsRef<OsStr> for str >::as_ref("x"));
63
- | ++++++++++++++++++++++++++++++++++++++++++++ ~
62
+ LL | |x| String::from(<str as AsRef<OsStr>>::as_ref("x"));
63
+ | ++++++++++++++++++++++++++++++ ~
64
64
help: try using a fully qualified path to specify the expected types
65
65
|
66
- LL | |x| String::from(path::<impl AsRef<Path> for str >::as_ref("x"));
67
- | +++++++++++++++++++++++++++++++++++++++++ ~
66
+ LL | |x| String::from(<str as AsRef<Path>>::as_ref("x"));
67
+ | +++++++++++++++++++++++++++++ ~
68
68
help: try using a fully qualified path to specify the expected types
69
69
|
70
70
LL | |x| String::from(<str as AsRef<str>>::as_ref("x"));
71
71
| ++++++++++++++++++++++++++++ ~
72
72
help: try using a fully qualified path to specify the expected types
73
73
|
74
- LL | |x| String::from(core::str::<impl AsRef<[u8]> for str >::as_ref("x"));
75
- | ++++++++++++++++++++++++++++++++++++++++++++++ ~
74
+ LL | |x| String::from(<str as AsRef<[u8]>>::as_ref("x"));
75
+ | +++++++++++++++++++++++++++++ ~
76
76
77
77
error[E0283]: type annotations needed for `&_`
78
78
--> $DIR/issue-72690.rs:17:9
@@ -113,20 +113,20 @@ LL | String::from("x".as_ref());
113
113
- impl AsRef<str> for str;
114
114
help: try using a fully qualified path to specify the expected types
115
115
|
116
- LL | String::from(os_str::<impl AsRef<OsStr> for str >::as_ref("x"));
117
- | ++++++++++++++++++++++++++++++++++++++++++++ ~
116
+ LL | String::from(<str as AsRef<OsStr>>::as_ref("x"));
117
+ | ++++++++++++++++++++++++++++++ ~
118
118
help: try using a fully qualified path to specify the expected types
119
119
|
120
- LL | String::from(path::<impl AsRef<Path> for str >::as_ref("x"));
121
- | +++++++++++++++++++++++++++++++++++++++++ ~
120
+ LL | String::from(<str as AsRef<Path>>::as_ref("x"));
121
+ | +++++++++++++++++++++++++++++ ~
122
122
help: try using a fully qualified path to specify the expected types
123
123
|
124
124
LL | String::from(<str as AsRef<str>>::as_ref("x"));
125
125
| ++++++++++++++++++++++++++++ ~
126
126
help: try using a fully qualified path to specify the expected types
127
127
|
128
- LL | String::from(core::str::<impl AsRef<[u8]> for str >::as_ref("x"));
129
- | ++++++++++++++++++++++++++++++++++++++++++++++ ~
128
+ LL | String::from(<str as AsRef<[u8]>>::as_ref("x"));
129
+ | +++++++++++++++++++++++++++++ ~
130
130
131
131
error[E0283]: type annotations needed
132
132
--> $DIR/issue-72690.rs:28:5
@@ -151,20 +151,20 @@ LL | String::from("x".as_ref());
151
151
- impl AsRef<str> for str;
152
152
help: try using a fully qualified path to specify the expected types
153
153
|
154
- LL | String::from(os_str::<impl AsRef<OsStr> for str >::as_ref("x"));
155
- | ++++++++++++++++++++++++++++++++++++++++++++ ~
154
+ LL | String::from(<str as AsRef<OsStr>>::as_ref("x"));
155
+ | ++++++++++++++++++++++++++++++ ~
156
156
help: try using a fully qualified path to specify the expected types
157
157
|
158
- LL | String::from(path::<impl AsRef<Path> for str >::as_ref("x"));
159
- | +++++++++++++++++++++++++++++++++++++++++ ~
158
+ LL | String::from(<str as AsRef<Path>>::as_ref("x"));
159
+ | +++++++++++++++++++++++++++++ ~
160
160
help: try using a fully qualified path to specify the expected types
161
161
|
162
162
LL | String::from(<str as AsRef<str>>::as_ref("x"));
163
163
| ++++++++++++++++++++++++++++ ~
164
164
help: try using a fully qualified path to specify the expected types
165
165
|
166
- LL | String::from(core::str::<impl AsRef<[u8]> for str >::as_ref("x"));
167
- | ++++++++++++++++++++++++++++++++++++++++++++++ ~
166
+ LL | String::from(<str as AsRef<[u8]>>::as_ref("x"));
167
+ | +++++++++++++++++++++++++++++ ~
168
168
169
169
error[E0283]: type annotations needed
170
170
--> $DIR/issue-72690.rs:37:5
@@ -189,20 +189,20 @@ LL | String::from("x".as_ref());
189
189
- impl AsRef<str> for str;
190
190
help: try using a fully qualified path to specify the expected types
191
191
|
192
- LL | String::from(os_str::<impl AsRef<OsStr> for str >::as_ref("x"));
193
- | ++++++++++++++++++++++++++++++++++++++++++++ ~
192
+ LL | String::from(<str as AsRef<OsStr>>::as_ref("x"));
193
+ | ++++++++++++++++++++++++++++++ ~
194
194
help: try using a fully qualified path to specify the expected types
195
195
|
196
- LL | String::from(path::<impl AsRef<Path> for str >::as_ref("x"));
197
- | +++++++++++++++++++++++++++++++++++++++++ ~
196
+ LL | String::from(<str as AsRef<Path>>::as_ref("x"));
197
+ | +++++++++++++++++++++++++++++ ~
198
198
help: try using a fully qualified path to specify the expected types
199
199
|
200
200
LL | String::from(<str as AsRef<str>>::as_ref("x"));
201
201
| ++++++++++++++++++++++++++++ ~
202
202
help: try using a fully qualified path to specify the expected types
203
203
|
204
- LL | String::from(core::str::<impl AsRef<[u8]> for str >::as_ref("x"));
205
- | ++++++++++++++++++++++++++++++++++++++++++++++ ~
204
+ LL | String::from(<str as AsRef<[u8]>>::as_ref("x"));
205
+ | +++++++++++++++++++++++++++++ ~
206
206
207
207
error[E0283]: type annotations needed
208
208
--> $DIR/issue-72690.rs:46:5
@@ -227,20 +227,20 @@ LL | String::from("x".as_ref());
227
227
- impl AsRef<str> for str;
228
228
help: try using a fully qualified path to specify the expected types
229
229
|
230
- LL | String::from(os_str::<impl AsRef<OsStr> for str >::as_ref("x"));
231
- | ++++++++++++++++++++++++++++++++++++++++++++ ~
230
+ LL | String::from(<str as AsRef<OsStr>>::as_ref("x"));
231
+ | ++++++++++++++++++++++++++++++ ~
232
232
help: try using a fully qualified path to specify the expected types
233
233
|
234
- LL | String::from(path::<impl AsRef<Path> for str >::as_ref("x"));
235
- | +++++++++++++++++++++++++++++++++++++++++ ~
234
+ LL | String::from(<str as AsRef<Path>>::as_ref("x"));
235
+ | +++++++++++++++++++++++++++++ ~
236
236
help: try using a fully qualified path to specify the expected types
237
237
|
238
238
LL | String::from(<str as AsRef<str>>::as_ref("x"));
239
239
| ++++++++++++++++++++++++++++ ~
240
240
help: try using a fully qualified path to specify the expected types
241
241
|
242
- LL | String::from(core::str::<impl AsRef<[u8]> for str >::as_ref("x"));
243
- | ++++++++++++++++++++++++++++++++++++++++++++++ ~
242
+ LL | String::from(<str as AsRef<[u8]>>::as_ref("x"));
243
+ | +++++++++++++++++++++++++++++ ~
244
244
245
245
error[E0283]: type annotations needed
246
246
--> $DIR/issue-72690.rs:53:5
@@ -265,20 +265,20 @@ LL | String::from("x".as_ref());
265
265
- impl AsRef<str> for str;
266
266
help: try using a fully qualified path to specify the expected types
267
267
|
268
- LL | String::from(os_str::<impl AsRef<OsStr> for str >::as_ref("x"));
269
- | ++++++++++++++++++++++++++++++++++++++++++++ ~
268
+ LL | String::from(<str as AsRef<OsStr>>::as_ref("x"));
269
+ | ++++++++++++++++++++++++++++++ ~
270
270
help: try using a fully qualified path to specify the expected types
271
271
|
272
- LL | String::from(path::<impl AsRef<Path> for str >::as_ref("x"));
273
- | +++++++++++++++++++++++++++++++++++++++++ ~
272
+ LL | String::from(<str as AsRef<Path>>::as_ref("x"));
273
+ | +++++++++++++++++++++++++++++ ~
274
274
help: try using a fully qualified path to specify the expected types
275
275
|
276
276
LL | String::from(<str as AsRef<str>>::as_ref("x"));
277
277
| ++++++++++++++++++++++++++++ ~
278
278
help: try using a fully qualified path to specify the expected types
279
279
|
280
- LL | String::from(core::str::<impl AsRef<[u8]> for str >::as_ref("x"));
281
- | ++++++++++++++++++++++++++++++++++++++++++++++ ~
280
+ LL | String::from(<str as AsRef<[u8]>>::as_ref("x"));
281
+ | +++++++++++++++++++++++++++++ ~
282
282
283
283
error[E0283]: type annotations needed
284
284
--> $DIR/issue-72690.rs:62:5
@@ -303,20 +303,20 @@ LL | String::from("x".as_ref());
303
303
- impl AsRef<str> for str;
304
304
help: try using a fully qualified path to specify the expected types
305
305
|
306
- LL | String::from(os_str::<impl AsRef<OsStr> for str >::as_ref("x"));
307
- | ++++++++++++++++++++++++++++++++++++++++++++ ~
306
+ LL | String::from(<str as AsRef<OsStr>>::as_ref("x"));
307
+ | ++++++++++++++++++++++++++++++ ~
308
308
help: try using a fully qualified path to specify the expected types
309
309
|
310
- LL | String::from(path::<impl AsRef<Path> for str >::as_ref("x"));
311
- | +++++++++++++++++++++++++++++++++++++++++ ~
310
+ LL | String::from(<str as AsRef<Path>>::as_ref("x"));
311
+ | +++++++++++++++++++++++++++++ ~
312
312
help: try using a fully qualified path to specify the expected types
313
313
|
314
314
LL | String::from(<str as AsRef<str>>::as_ref("x"));
315
315
| ++++++++++++++++++++++++++++ ~
316
316
help: try using a fully qualified path to specify the expected types
317
317
|
318
- LL | String::from(core::str::<impl AsRef<[u8]> for str >::as_ref("x"));
319
- | ++++++++++++++++++++++++++++++++++++++++++++++ ~
318
+ LL | String::from(<str as AsRef<[u8]>>::as_ref("x"));
319
+ | +++++++++++++++++++++++++++++ ~
320
320
321
321
error: aborting due to 17 previous errors
322
322
0 commit comments