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