summary refs log tree commit diff
path: root/src/test/ui/closures/issue-52437.rs
blob: 634638e1335b327576797cf90a7a99f672d203f6 (plain)
1
2
3
4
5
6
7
fn main() {
    [(); &(&'static: loop { |x| {}; }) as *const _ as usize]
    //~^ ERROR: invalid label name `'static`
    //~| ERROR: `loop` is not allowed in a `const`
    //~| ERROR: type annotations needed
    //~| ERROR mismatched types
}