mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
20 lines
649 B
Text
20 lines
649 B
Text
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`.
|