rust/tests/ui/closures/issue-52437.stderr

21 lines
649 B
Plaintext
Raw Normal View History

2019-10-22 03:01:32 -05:00
error: invalid label name `'static`
--> $DIR/issue-52437.rs:2:13
|
LL | [(); &(&'static: loop { |x| {}; }) as *const _ as usize]
| ^^^^^^^
error[E0282]: type annotations needed
--> $DIR/issue-52437.rs:2:30
|
LL | [(); &(&'static: loop { |x| {}; }) as *const _ as usize]
2022-02-14 06:25:26 -06:00
| ^
|
2022-12-13 13:36:43 -06:00
help: consider giving this closure parameter an explicit type
2022-02-14 06:25:26 -06:00
|
2022-12-13 13:36:43 -06:00
LL | [(); &(&'static: loop { |x: /* Type */| {}; }) as *const _ as usize]
| ++++++++++++
2019-10-22 03:01:32 -05:00
2022-07-04 11:25:37 -05:00
error: aborting due to 2 previous errors
2019-10-22 03:01:32 -05:00
2022-07-04 11:25:37 -05:00
For more information about this error, try `rustc --explain E0282`.