]> git.proxmox.com Git - rustc.git/blob - src/test/ui/span/issue-42234-unknown-receiver-type.full.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / span / issue-42234-unknown-receiver-type.full.stderr
1 error[E0282]: type annotations needed
2 --> $DIR/issue-42234-unknown-receiver-type.rs:9:24
3 |
4 LL | let x: Option<_> = None;
5 | ^^^^ cannot infer type of the type parameter `T` declared on the enum `Option`
6 |
7 = note: type must be known at this point
8 help: consider specifying the generic argument
9 |
10 LL | let x: Option<_> = None::<T>;
11 | +++++
12
13 error[E0282]: type annotations needed
14 --> $DIR/issue-42234-unknown-receiver-type.rs:15:10
15 |
16 LL | .sum::<_>()
17 | ^^^ cannot infer type of the type parameter `S` declared on the associated function `sum`
18 |
19 = note: type must be known at this point
20 help: consider specifying the generic argument
21 |
22 LL | .sum::<_>()
23 | ~~~~~
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0282`.