blob: 48b7946ea820e8b6d328520786965cef37fecbdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
error[E0282]: type annotations needed
--> $DIR/closures_in_branches.rs:7:10
|
LL | |x| x.len()
| ^ - type must be known at this point
|
help: consider giving this closure parameter an explicit type
|
LL | |x: _| x.len()
| +++
error[E0282]: type annotations needed
--> $DIR/closures_in_branches.rs:21:10
|
LL | |x| x.len()
| ^ - type must be known at this point
|
help: consider giving this closure parameter an explicit type
|
LL | |x: _| x.len()
| +++
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0282`.
|