rust/src/test/ui/parser/lifetime-in-pattern.rs
2018-12-25 21:08:33 -07:00

8 lines
120 B
Rust

// compile-flags: -Z parse-only
fn test(&'a str) {
//~^ ERROR unexpected lifetime `'a` in pattern
}
fn main() {
}