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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
649 B
Plaintext
Raw Normal View History

2019-10-22 17:01:32 +09: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 13:25:26 +01:00
| ^
|
2022-12-13 11:36:43 -08:00
help: consider giving this closure parameter an explicit type
2022-02-14 13:25:26 +01:00
|
2022-12-13 11:36:43 -08:00
LL | [(); &(&'static: loop { |x: /* Type */| {}; }) as *const _ as usize]
| ++++++++++++
2019-10-22 17:01:32 +09:00
2022-07-04 18:25:37 +02:00
error: aborting due to 2 previous errors
2019-10-22 17:01:32 +09:00
2022-07-04 18:25:37 +02:00
For more information about this error, try `rustc --explain E0282`.