]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/lifetime-in-pattern-recover.rs
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / ui / parser / lifetime-in-pattern-recover.rs
1 fn main() {
2     let &'a x = &0; //~ ERROR unexpected lifetime `'a` in pattern
3     let &'a mut y = &mut 0; //~ ERROR unexpected lifetime `'a` in pattern
4
5     let _recovery_witness: () = 0; //~ ERROR mismatched types
6 }