]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/lifetime-in-pattern.stderr
Merge commit 'bf1c6f9871f430e284b17aa44059e0d0395e28a6' into clippyup
[rust.git] / src / test / ui / parser / lifetime-in-pattern.stderr
1 error: unexpected lifetime `'a` in pattern
2   --> $DIR/lifetime-in-pattern.rs:1:10
3    |
4 LL | fn test(&'a str) {
5    |          ^^ help: remove the lifetime
6
7 error: expected one of `:`, `@`, or `|`, found `)`
8   --> $DIR/lifetime-in-pattern.rs:1:16
9    |
10 LL | fn test(&'a str) {
11    |                ^ expected one of `:`, `@`, or `|`
12
13 error: aborting due to 2 previous errors
14