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