@@ -5,8 +5,8 @@ LL | String::from("x".as_ref());
5
5
| ^^^^^^ cannot infer type for reference `&_`
6
6
|
7
7
= 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;
10
10
11
11
error[E0283]: type annotations needed
12
12
--> $DIR/issue-72690.rs:7:22
@@ -74,8 +74,8 @@ LL | String::from("x".as_ref());
74
74
| ^^^^^^ cannot infer type for reference `&_`
75
75
|
76
76
= 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;
79
79
80
80
error[E0283]: type annotations needed
81
81
--> $DIR/issue-72690.rs:21:22
@@ -100,8 +100,8 @@ LL | String::from("x".as_ref());
100
100
| ^^^^^^ cannot infer type for reference `&_`
101
101
|
102
102
= 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;
105
105
106
106
error[E0283]: type annotations needed
107
107
--> $DIR/issue-72690.rs:28:22
@@ -126,8 +126,8 @@ LL | String::from("x".as_ref());
126
126
| ^^^^^^ cannot infer type for reference `&_`
127
127
|
128
128
= 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;
131
131
132
132
error[E0283]: type annotations needed
133
133
--> $DIR/issue-72690.rs:37:22
@@ -152,8 +152,8 @@ LL | String::from("x".as_ref());
152
152
| ^^^^^^ cannot infer type for reference `&_`
153
153
|
154
154
= 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;
157
157
158
158
error[E0283]: type annotations needed
159
159
--> $DIR/issue-72690.rs:46:22
@@ -178,8 +178,8 @@ LL | String::from("x".as_ref());
178
178
| ^^^^^^ cannot infer type for reference `&_`
179
179
|
180
180
= 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;
183
183
184
184
error[E0283]: type annotations needed
185
185
--> $DIR/issue-72690.rs:53:22
@@ -204,8 +204,8 @@ LL | String::from("x".as_ref());
204
204
| ^^^^^^ cannot infer type for reference `&_`
205
205
|
206
206
= 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;
209
209
210
210
error[E0283]: type annotations needed
211
211
--> $DIR/issue-72690.rs:62:22
0 commit comments