]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lazy-type-alias-impl-trait/branches3.stderr
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / lazy-type-alias-impl-trait / branches3.stderr
1 error[E0282]: type annotations needed
2   --> $DIR/branches3.rs:8:10
3    |
4 LL |         |s| s.len()
5    |          ^  - type must be known at this point
6    |
7 help: consider giving this closure parameter an explicit type
8    |
9 LL |         |s: _| s.len()
10    |           +++
11
12 error[E0282]: type annotations needed
13   --> $DIR/branches3.rs:15:10
14    |
15 LL |         |s| s.len()
16    |          ^  - type must be known at this point
17    |
18 help: consider giving this closure parameter an explicit type
19    |
20 LL |         |s: _| s.len()
21    |           +++
22
23 error[E0282]: type annotations needed
24   --> $DIR/branches3.rs:23:10
25    |
26 LL |         |s| s.len()
27    |          ^  - type must be known at this point
28    |
29 help: consider giving this closure parameter an explicit type
30    |
31 LL |         |s: _| s.len()
32    |           +++
33
34 error[E0282]: type annotations needed
35   --> $DIR/branches3.rs:30:10
36    |
37 LL |         |s| s.len()
38    |          ^  - type must be known at this point
39    |
40 help: consider giving this closure parameter an explicit type
41    |
42 LL |         |s: _| s.len()
43    |           +++
44
45 error: aborting due to 4 previous errors
46
47 For more information about this error, try `rustc --explain E0282`.