summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/lifetime-in-pattern.rs
blob: d3c638d0cd74b052bcd34bf6e5761dbb9901fbb1 (plain)
1
2
3
4
5
6
7
fn test(&'a str) {
    //~^ ERROR unexpected lifetime `'a` in pattern
    //~| ERROR expected one of `:`, `@`, or `|`, found `)`
}

fn main() {
}