]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closures/issue-52437.rs
Merge commit '9a0c32934ebe376128230aa8da3275697b2053e7' into sync_cg_clif-2021-03-05
[rust.git] / src / test / ui / closures / issue-52437.rs
1 fn main() {
2     [(); &(&'static: loop { |x| {}; }) as *const _ as usize]
3     //~^ ERROR: invalid label name `'static`
4     //~| ERROR: type annotations needed
5     //~| ERROR mismatched types
6 }