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 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
14 help: if this is a `self` type, give it a parameter name
16 LL | fn test(self: &str) {
18 help: if this is a parameter name, give it a type
20 LL | fn test(str: &TypeName) {
22 help: if this is a type, explicitly ignore the parameter name
24 LL | fn test(_: &str) {
27 error: aborting due to 2 previous errors