rustc/tests/ui/parser/lifetime-in-pattern.rs
2023-08-02 10:33:26 +02:00

8 lines
146 B
Rust

fn test(&'a str) {
//~^ ERROR unexpected lifetime `'a` in pattern
//~| ERROR expected one of `:`, `@`, or `|`, found `)`
}
fn main() {
}