]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closures/issue-52437.rs
Rollup merge of #73929 - kraai:fix-comment-typo, r=jonas-schievink
[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 }