summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/closures_in_branches.stderr
blob: 9cc15f14a991d5516050b277133921024cfbd0cd (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: /* Type */| 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: /* Type */| x.len()
   |           ++++++++++++

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0282`.