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

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

6 lines
160 B
Rust
Raw Normal View History

2019-10-22 08:01:32 +00:00
fn main() {
[(); &(&'static: loop { |x| {}; }) as *const _ as usize]
//~^ ERROR: invalid label name `'static`
//~| ERROR: type annotations needed
}