about summary refs log tree commit diff
path: root/src/test/parse-fail
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-01-13 12:42:33 +0000
committerbors <bors@rust-lang.org>2018-01-13 12:42:33 +0000
commit9b2f8ac29eca4a42c35ce32b13231fcc1f9a3c9d (patch)
tree5bda99152b07371500965df30607984d40ca8b82 /src/test/parse-fail
parentca092937aa43f7ad166f67bf4eb96753293e56f9 (diff)
parentd17e38f4bf3418770b7314bad0b8ef4490db55bd (diff)
Auto merge of #47242 - estebank:issue-15980, r=petrochenkov
`struct` pattern parsing and diagnostic tweaks

 - Recover from struct parse error on match and point out missing match
   body.
 - Point at struct when finding non-identifier while parsing its fields.
 - Add label to "expected identifier, found {}" error.

Fix #15980.
Diffstat (limited to 'src/test/parse-fail')
-rw-r--r--src/test/parse-fail/issue-32501.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/parse-fail/issue-32501.rs b/src/test/parse-fail/issue-32501.rs
index 10df093423c..f29c1fa2794 100644
--- a/src/test/parse-fail/issue-32501.rs
+++ b/src/test/parse-fail/issue-32501.rs
@@ -18,4 +18,5 @@ fn main() {
     let mut _b = 0;
     let mut _ = 0; //~ ERROR expected identifier, found `_`
     //~^ NOTE `_` is a wildcard pattern, not an identifier
+    //~| NOTE expected identifier
 }