1 error: unexpected lifetime `'a` in pattern
2 --> $DIR/lifetime-in-pattern.rs:1:10
4 LL | fn test(&'a str) {
5 | ^^ help: remove the lifetime
7 error: expected one of `:`, `@`, or `|`, found `)`
8 --> $DIR/lifetime-in-pattern.rs:1:16
10 LL | fn test(&'a str) {
11 | ^ expected one of `:`, `@`, or `|`
13 error: aborting due to 2 previous errors