]>
Commit | Line | Data |
---|---|---|
064997fb FG |
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: _| x.len() | |
10 | | +++ | |
11 | ||
5e7ed085 FG |
12 | error[E0282]: type annotations needed |
13 | --> $DIR/closures_in_branches.rs:21:10 | |
14 | | | |
15 | LL | |x| x.len() | |
064997fb | 16 | | ^ - type must be known at this point |
5e7ed085 | 17 | | |
923072b8 FG |
18 | help: consider giving this closure parameter an explicit type |
19 | | | |
20 | LL | |x: _| x.len() | |
21 | | +++ | |
5e7ed085 | 22 | |
064997fb | 23 | error: aborting due to 2 previous errors |
5e7ed085 FG |
24 | |
25 | For more information about this error, try `rustc --explain E0282`. |