summaryrefslogtreecommitdiffstats
path: root/src/test/ui/closures/issue-52437.rs
blob: 6ac5380a5aa23b0dcd7161a40741f9c639b29902 (plain)
1
2
3
4
5
fn main() {
    [(); &(&'static: loop { |x| {}; }) as *const _ as usize]
    //~^ ERROR: invalid label name `'static`
    //~| ERROR: type annotations needed
}