fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: unexpected lifetime `'a` in pattern 2 --> $DIR/lifetime-in-pattern.rs:1:10 3 | 4LL | fn test(&'a str) { 5 | ^^ help: remove the lifetime 6 7error: expected one of `:`, `@`, or `|`, found `)` 8 --> $DIR/lifetime-in-pattern.rs:1:16 9 | 10LL | fn test(&'a str) { 11 | ^ expected one of `:`, `@`, or `|` 12 | 13 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) 14help: if this is a `self` type, give it a parameter name 15 | 16LL | fn test(self: &'a str) { 17 | +++++ 18help: if this is a parameter name, give it a type 19 | 20LL | fn test(str: &TypeName) { 21 | ~~~~~~~~~~~~~~ 22help: if this is a type, explicitly ignore the parameter name 23 | 24LL | fn test(_: &'a str) { 25 | ++ 26 27error: aborting due to 2 previous errors 28