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