about summary refs log tree commit diff
path: root/src/test/parse-fail
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2018-01-06 14:43:20 -0800
committerEsteban Küber <esteban@kuber.com.ar>2018-01-07 17:04:36 -0800
commitd17e38f4bf3418770b7314bad0b8ef4490db55bd (patch)
treecff37fc9120460ff5b26917f4fed6184d9070c6c /src/test/parse-fail
parent885011ef1fd8fbe8c5be50a0713c03c980772be3 (diff)
downloadrust-d17e38f4bf3418770b7314bad0b8ef4490db55bd.tar.gz
rust-d17e38f4bf3418770b7314bad0b8ef4490db55bd.zip
`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.
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
 }