]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/issue-52437.rs
Rollup merge of #106707 - ehuss:remove-dupe-sha-1, r=Mark-Simulacrum
[rust.git] / tests / 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 }