2020-06-05 12:27:43 +01:00
|
|
|
error[E0283]: type annotations needed
|
|
|
|
--> $DIR/issue-72690.rs:7:5
|
|
|
|
|
|
|
|
|
LL | String::from("x".as_ref());
|
2020-09-02 10:40:56 +03:00
|
|
|
| ^^^^^^^^^^^^ cannot infer type for struct `String`
|
2020-06-05 12:27:43 +01:00
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= note: cannot satisfy `String: From<&_>`
|
|
|
|
= note: required by `from`
|
2020-06-05 12:27:43 +01:00
|
|
|
|
|
|
|
error[E0282]: type annotations needed
|
|
|
|
--> $DIR/issue-72690.rs:11:6
|
|
|
|
|
|
|
|
|
LL | |x| String::from("x".as_ref());
|
|
|
|
| ^ consider giving this closure parameter a type
|
|
|
|
|
|
|
|
error[E0283]: type annotations needed
|
|
|
|
--> $DIR/issue-72690.rs:15:17
|
|
|
|
|
|
|
|
|
LL | let _ = "x".as_ref();
|
|
|
|
| ^^^^^^ cannot infer type for type `str`
|
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= note: cannot satisfy `str: AsRef<_>`
|
2020-06-05 12:27:43 +01:00
|
|
|
|
|
|
|
error[E0283]: type annotations needed
|
|
|
|
--> $DIR/issue-72690.rs:19:5
|
|
|
|
|
|
|
|
|
LL | String::from("x".as_ref());
|
2020-09-02 10:40:56 +03:00
|
|
|
| ^^^^^^^^^^^^ cannot infer type for struct `String`
|
2020-06-05 12:27:43 +01:00
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= note: cannot satisfy `String: From<&_>`
|
|
|
|
= note: required by `from`
|
2020-06-05 12:27:43 +01:00
|
|
|
|
|
|
|
error[E0283]: type annotations needed
|
|
|
|
--> $DIR/issue-72690.rs:25:5
|
|
|
|
|
|
|
|
|
LL | String::from("x".as_ref());
|
2020-09-02 10:40:56 +03:00
|
|
|
| ^^^^^^^^^^^^ cannot infer type for struct `String`
|
2020-06-05 12:27:43 +01:00
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= note: cannot satisfy `String: From<&_>`
|
|
|
|
= note: required by `from`
|
2020-06-05 12:27:43 +01:00
|
|
|
|
|
|
|
error[E0283]: type annotations needed
|
|
|
|
--> $DIR/issue-72690.rs:33:5
|
|
|
|
|
|
|
|
|
LL | String::from("x".as_ref());
|
2020-09-02 10:40:56 +03:00
|
|
|
| ^^^^^^^^^^^^ cannot infer type for struct `String`
|
2020-06-05 12:27:43 +01:00
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= note: cannot satisfy `String: From<&_>`
|
|
|
|
= note: required by `from`
|
2020-06-05 12:27:43 +01:00
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
error[E0283]: type annotations needed for `String`
|
2020-06-05 12:27:43 +01:00
|
|
|
--> $DIR/issue-72690.rs:41:5
|
|
|
|
|
|
|
|
|
LL | String::from("x".as_ref());
|
2020-09-02 10:40:56 +03:00
|
|
|
| ^^^^^^^^^^^^ cannot infer type for struct `String`
|
2020-06-05 12:27:43 +01:00
|
|
|
LL | let _ = String::from("x");
|
|
|
|
| - consider giving this pattern a type
|
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= note: cannot satisfy `String: From<&_>`
|
|
|
|
= note: required by `from`
|
2020-06-05 12:27:43 +01:00
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
error[E0283]: type annotations needed for `String`
|
2020-06-05 12:27:43 +01:00
|
|
|
--> $DIR/issue-72690.rs:47:5
|
|
|
|
|
|
|
|
|
LL | let _ = String::from("x");
|
|
|
|
| - consider giving this pattern a type
|
|
|
|
LL | String::from("x".as_ref());
|
2020-09-02 10:40:56 +03:00
|
|
|
| ^^^^^^^^^^^^ cannot infer type for struct `String`
|
2020-06-05 12:27:43 +01:00
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= note: cannot satisfy `String: From<&_>`
|
|
|
|
= note: required by `from`
|
2020-06-05 12:27:43 +01:00
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
error[E0283]: type annotations needed for `String`
|
2020-06-05 12:27:43 +01:00
|
|
|
--> $DIR/issue-72690.rs:55:5
|
|
|
|
|
|
|
|
|
LL | let _ = String::from("x");
|
|
|
|
| - consider giving this pattern a type
|
|
|
|
...
|
|
|
|
LL | String::from("x".as_ref());
|
2020-09-02 10:40:56 +03:00
|
|
|
| ^^^^^^^^^^^^ cannot infer type for struct `String`
|
2020-06-05 12:27:43 +01:00
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= note: cannot satisfy `String: From<&_>`
|
|
|
|
= note: required by `from`
|
2020-06-05 12:27:43 +01:00
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|
|
|
|
Some errors have detailed explanations: E0282, E0283.
|
|
|
|
For more information about an error, try `rustc --explain E0282`.
|