@@ -5,8 +5,8 @@ LL | String::from("x".as_ref());
55 | ^^^^^^ cannot infer type for reference `&_`
66 |
77 = note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate:
8- - impl<> From<&String> for String;
9- - impl<> From<&str> for String;
8+ - impl From<&String> for String;
9+ - impl From<&str> for String;
1010
1111error[E0283]: type annotations needed
1212 --> $DIR/issue-72690.rs:7:22
@@ -74,8 +74,8 @@ LL | String::from("x".as_ref());
7474 | ^^^^^^ cannot infer type for reference `&_`
7575 |
7676 = note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate:
77- - impl<> From<&String> for String;
78- - impl<> From<&str> for String;
77+ - impl From<&String> for String;
78+ - impl From<&str> for String;
7979
8080error[E0283]: type annotations needed
8181 --> $DIR/issue-72690.rs:21:22
@@ -100,8 +100,8 @@ LL | String::from("x".as_ref());
100100 | ^^^^^^ cannot infer type for reference `&_`
101101 |
102102 = note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate:
103- - impl<> From<&String> for String;
104- - impl<> From<&str> for String;
103+ - impl From<&String> for String;
104+ - impl From<&str> for String;
105105
106106error[E0283]: type annotations needed
107107 --> $DIR/issue-72690.rs:28:22
@@ -126,8 +126,8 @@ LL | String::from("x".as_ref());
126126 | ^^^^^^ cannot infer type for reference `&_`
127127 |
128128 = note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate:
129- - impl<> From<&String> for String;
130- - impl<> From<&str> for String;
129+ - impl From<&String> for String;
130+ - impl From<&str> for String;
131131
132132error[E0283]: type annotations needed
133133 --> $DIR/issue-72690.rs:37:22
@@ -152,8 +152,8 @@ LL | String::from("x".as_ref());
152152 | ^^^^^^ cannot infer type for reference `&_`
153153 |
154154 = note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate:
155- - impl<> From<&String> for String;
156- - impl<> From<&str> for String;
155+ - impl From<&String> for String;
156+ - impl From<&str> for String;
157157
158158error[E0283]: type annotations needed
159159 --> $DIR/issue-72690.rs:46:22
@@ -178,8 +178,8 @@ LL | String::from("x".as_ref());
178178 | ^^^^^^ cannot infer type for reference `&_`
179179 |
180180 = note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate:
181- - impl<> From<&String> for String;
182- - impl<> From<&str> for String;
181+ - impl From<&String> for String;
182+ - impl From<&str> for String;
183183
184184error[E0283]: type annotations needed
185185 --> $DIR/issue-72690.rs:53:22
@@ -204,8 +204,8 @@ LL | String::from("x".as_ref());
204204 | ^^^^^^ cannot infer type for reference `&_`
205205 |
206206 = note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate:
207- - impl<> From<&String> for String;
208- - impl<> From<&str> for String;
207+ - impl From<&String> for String;
208+ - impl From<&str> for String;
209209
210210error[E0283]: type annotations needed
211211 --> $DIR/issue-72690.rs:62:22
0 commit comments