mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
21 lines
649 B
Plaintext
21 lines
649 B
Plaintext
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]
|
|
| ^
|
|
|
|
|
help: consider giving this closure parameter an explicit type
|
|
|
|
|
LL | [(); &(&'static: loop { |x: /* Type */| {}; }) as *const _ as usize]
|
|
| ++++++++++++
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|