@@ -21,8 +21,20 @@ LL | String::from("x".as_ref());
2121 - impl AsRef<str> for str;
2222help: try using a fully qualified path to specify the expected types
2323 |
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+ | ++++++++++++++++++++++++++++++++++++++++++++++ ~
2638
2739error[E0283]: type annotations needed
2840 --> $DIR/issue-72690.rs:12:9
@@ -47,8 +59,20 @@ LL | |x| String::from("x".as_ref());
4759 - impl AsRef<str> for str;
4860help: try using a fully qualified path to specify the expected types
4961 |
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+ | ++++++++++++++++++++++++++++++++++++++++++++++ ~
5276
5377error[E0283]: type annotations needed for `&_`
5478 --> $DIR/issue-72690.rs:17:9
@@ -89,8 +113,20 @@ LL | String::from("x".as_ref());
89113 - impl AsRef<str> for str;
90114help: try using a fully qualified path to specify the expected types
91115 |
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+ | ++++++++++++++++++++++++++++++++++++++++++++++ ~
94130
95131error[E0283]: type annotations needed
96132 --> $DIR/issue-72690.rs:28:5
@@ -115,8 +151,20 @@ LL | String::from("x".as_ref());
115151 - impl AsRef<str> for str;
116152help: try using a fully qualified path to specify the expected types
117153 |
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+ | ++++++++++++++++++++++++++++++++++++++++++++++ ~
120168
121169error[E0283]: type annotations needed
122170 --> $DIR/issue-72690.rs:37:5
@@ -141,8 +189,20 @@ LL | String::from("x".as_ref());
141189 - impl AsRef<str> for str;
142190help: try using a fully qualified path to specify the expected types
143191 |
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+ | ++++++++++++++++++++++++++++++++++++++++++++++ ~
146206
147207error[E0283]: type annotations needed
148208 --> $DIR/issue-72690.rs:46:5
@@ -167,8 +227,20 @@ LL | String::from("x".as_ref());
167227 - impl AsRef<str> for str;
168228help: try using a fully qualified path to specify the expected types
169229 |
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+ | ++++++++++++++++++++++++++++++++++++++++++++++ ~
172244
173245error[E0283]: type annotations needed
174246 --> $DIR/issue-72690.rs:53:5
@@ -193,8 +265,20 @@ LL | String::from("x".as_ref());
193265 - impl AsRef<str> for str;
194266help: try using a fully qualified path to specify the expected types
195267 |
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+ | ++++++++++++++++++++++++++++++++++++++++++++++ ~
198282
199283error[E0283]: type annotations needed
200284 --> $DIR/issue-72690.rs:62:5
@@ -219,8 +303,20 @@ LL | String::from("x".as_ref());
219303 - impl AsRef<str> for str;
220304help: try using a fully qualified path to specify the expected types
221305 |
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+ | ++++++++++++++++++++++++++++++++++++++++++++++ ~
224320
225321error: aborting due to 17 previous errors
226322
0 commit comments