]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/issue-52437.rs
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[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 }