]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-72690.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-72690.stderr
CommitLineData
f035d41b
XL
1error[E0283]: type annotations needed
2 --> $DIR/issue-72690.rs:7:5
3 |
4LL | 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
10error[E0282]: type annotations needed
11 --> $DIR/issue-72690.rs:11:6
12 |
13LL | |x| String::from("x".as_ref());
14 | ^ consider giving this closure parameter a type
15
29967ef6 16error[E0283]: type annotations needed for `&T`
f035d41b
XL
17 --> $DIR/issue-72690.rs:15:17
18 |
19LL | 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
26error[E0283]: type annotations needed
27 --> $DIR/issue-72690.rs:19:5
28 |
29LL | 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
35error[E0283]: type annotations needed
36 --> $DIR/issue-72690.rs:25:5
37 |
38LL | 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
44error[E0283]: type annotations needed
45 --> $DIR/issue-72690.rs:33:5
46 |
47LL | 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 53error[E0283]: type annotations needed
f035d41b
XL
54 --> $DIR/issue-72690.rs:41:5
55 |
56LL | 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 62error[E0283]: type annotations needed
f035d41b
XL
63 --> $DIR/issue-72690.rs:47:5
64 |
f035d41b 65LL | 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 71error[E0283]: type annotations needed
f035d41b
XL
72 --> $DIR/issue-72690.rs:55:5
73 |
f035d41b 74LL | 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
80error: aborting due to 9 previous errors
81
82Some errors have detailed explanations: E0282, E0283.
83For more information about an error, try `rustc --explain E0282`.