]> git.proxmox.com Git - rustc.git/blob - tests/ui/type-alias-impl-trait/closures_in_branches.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / type-alias-impl-trait / closures_in_branches.stderr
1 error[E0282]: type annotations needed
2 --> $DIR/closures_in_branches.rs:7:10
3 |
4 LL | |x| x.len()
5 | ^ - type must be known at this point
6 |
7 help: consider giving this closure parameter an explicit type
8 |
9 LL | |x: /* Type */| x.len()
10 | ++++++++++++
11
12 error[E0282]: type annotations needed
13 --> $DIR/closures_in_branches.rs:21:10
14 |
15 LL | |x| x.len()
16 | ^ - type must be known at this point
17 |
18 help: consider giving this closure parameter an explicit type
19 |
20 LL | |x: /* Type */| x.len()
21 | ++++++++++++
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0282`.