]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closures/issue-52437.rs
Rollup merge of #89235 - yaahc:junit-formatting, r=kennytm
[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 }