]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/parser/lifetime-in-pattern.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / parser / lifetime-in-pattern.stderr
index e525c7b6d680f2d6c6f55884cfd54c1864ec9010..71fd3cdf72370d5eab2ae27c317f4953b39390a8 100644 (file)
@@ -2,7 +2,13 @@ error: unexpected lifetime `'a` in pattern
   --> $DIR/lifetime-in-pattern.rs:1:10
    |
 LL | fn test(&'a str) {
-   |          ^^ unexpected lifetime
+   |          ^^ help: remove the lifetime
 
-error: aborting due to previous error
+error: expected one of `:`, `@`, or `|`, found `)`
+  --> $DIR/lifetime-in-pattern.rs:1:16
+   |
+LL | fn test(&'a str) {
+   |                ^ expected one of `:`, `@`, or `|`
+
+error: aborting due to 2 previous errors