]>
Commit | Line | Data |
---|---|---|
f035d41b XL |
1 | error[E0283]: type annotations needed |
2 | --> $DIR/issue-72690.rs:7:5 | |
3 | | | |
4 | LL | String::from("x".as_ref()); | |
29967ef6 | 5 | | ^^^^^^^^^^^^ cannot infer type for reference `&_` |
f035d41b | 6 | | |
1b1a35ee XL |
7 | = note: cannot satisfy `String: From<&_>` |
8 | = note: required by `from` | |
f035d41b XL |
9 | |
10 | error[E0282]: type annotations needed | |
11 | --> $DIR/issue-72690.rs:11:6 | |
12 | | | |
13 | LL | |x| String::from("x".as_ref()); | |
14 | | ^ consider giving this closure parameter a type | |
15 | ||
29967ef6 | 16 | error[E0283]: type annotations needed for `&T` |
f035d41b XL |
17 | --> $DIR/issue-72690.rs:15:17 |
18 | | | |
19 | LL | let _ = "x".as_ref(); | |
29967ef6 XL |
20 | | - ^^^^^^ cannot infer type for type parameter `T` declared on the trait `AsRef` |
21 | | | | |
22 | | consider giving this pattern the explicit type `&T`, where the type parameter `T` is specified | |
f035d41b | 23 | | |
1b1a35ee | 24 | = note: cannot satisfy `str: AsRef<_>` |
f035d41b XL |
25 | |
26 | error[E0283]: type annotations needed | |
27 | --> $DIR/issue-72690.rs:19:5 | |
28 | | | |
29 | LL | String::from("x".as_ref()); | |
29967ef6 | 30 | | ^^^^^^^^^^^^ cannot infer type for reference `&_` |
f035d41b | 31 | | |
1b1a35ee XL |
32 | = note: cannot satisfy `String: From<&_>` |
33 | = note: required by `from` | |
f035d41b XL |
34 | |
35 | error[E0283]: type annotations needed | |
36 | --> $DIR/issue-72690.rs:25:5 | |
37 | | | |
38 | LL | String::from("x".as_ref()); | |
29967ef6 | 39 | | ^^^^^^^^^^^^ cannot infer type for reference `&_` |
f035d41b | 40 | | |
1b1a35ee XL |
41 | = note: cannot satisfy `String: From<&_>` |
42 | = note: required by `from` | |
f035d41b XL |
43 | |
44 | error[E0283]: type annotations needed | |
45 | --> $DIR/issue-72690.rs:33:5 | |
46 | | | |
47 | LL | String::from("x".as_ref()); | |
29967ef6 | 48 | | ^^^^^^^^^^^^ cannot infer type for reference `&_` |
f035d41b | 49 | | |
1b1a35ee XL |
50 | = note: cannot satisfy `String: From<&_>` |
51 | = note: required by `from` | |
f035d41b | 52 | |
29967ef6 | 53 | error[E0283]: type annotations needed |
f035d41b XL |
54 | --> $DIR/issue-72690.rs:41:5 |
55 | | | |
56 | LL | String::from("x".as_ref()); | |
29967ef6 | 57 | | ^^^^^^^^^^^^ cannot infer type for reference `&_` |
f035d41b | 58 | | |
1b1a35ee XL |
59 | = note: cannot satisfy `String: From<&_>` |
60 | = note: required by `from` | |
f035d41b | 61 | |
29967ef6 | 62 | error[E0283]: type annotations needed |
f035d41b XL |
63 | --> $DIR/issue-72690.rs:47:5 |
64 | | | |
f035d41b | 65 | LL | String::from("x".as_ref()); |
29967ef6 | 66 | | ^^^^^^^^^^^^ cannot infer type for reference `&_` |
f035d41b | 67 | | |
1b1a35ee XL |
68 | = note: cannot satisfy `String: From<&_>` |
69 | = note: required by `from` | |
f035d41b | 70 | |
29967ef6 | 71 | error[E0283]: type annotations needed |
f035d41b XL |
72 | --> $DIR/issue-72690.rs:55:5 |
73 | | | |
f035d41b | 74 | LL | String::from("x".as_ref()); |
29967ef6 | 75 | | ^^^^^^^^^^^^ cannot infer type for reference `&_` |
f035d41b | 76 | | |
1b1a35ee XL |
77 | = note: cannot satisfy `String: From<&_>` |
78 | = note: required by `from` | |
f035d41b XL |
79 | |
80 | error: aborting due to 9 previous errors | |
81 | ||
82 | Some errors have detailed explanations: E0282, E0283. | |
83 | For more information about an error, try `rustc --explain E0282`. |