rust/tests/ui/closures/issue-52437.rs
2023-01-11 09:32:08 +00:00

6 lines
160 B
Rust

fn main() {
[(); &(&'static: loop { |x| {}; }) as *const _ as usize]
//~^ ERROR: invalid label name `'static`
//~| ERROR: type annotations needed
}