summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/lifetime-in-pattern-recover.rs
blob: 7fb14b8007671b2a99912145c88e737c372bb957 (plain)
1
2
3
4
5
6
fn main() {
    let &'a x = &0; //~ ERROR unexpected lifetime `'a` in pattern
    let &'a mut y = &mut 0; //~ ERROR unexpected lifetime `'a` in pattern

    let _recovery_witness: () = 0; //~ ERROR mismatched types
}