fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
372 B14 linesraw
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
13error: aborting due to 2 previous errors
14