aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/tests/data/parser/err/0025_nope.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/err/0025_nope.rs')
-rw-r--r--crates/ra_syntax/tests/data/parser/err/0025_nope.rs31
1 files changed, 0 insertions, 31 deletions
diff --git a/crates/ra_syntax/tests/data/parser/err/0025_nope.rs b/crates/ra_syntax/tests/data/parser/err/0025_nope.rs
deleted file mode 100644
index 28726ed51..000000000
--- a/crates/ra_syntax/tests/data/parser/err/0025_nope.rs
+++ /dev/null
@@ -1,31 +0,0 @@
1fn main() {
2 enum Test {
3 Var1,
4 Var2(String),
5 Var3 {
6 abc: {}, //~ ERROR: expected type, found `{`
7 },
8 }
9
10 // recover...
11 let a = 1;
12 enum Test2 {
13 Fine,
14 }
15
16 enum Test3 {
17 StillFine {
18 def: i32,
19 },
20 }
21
22 {
23 // fail again
24 enum Test4 {
25 Nope(i32 {}) //~ ERROR: found `{`
26 //~^ ERROR: found `{`
27 }
28 }
29 // still recover later
30 let bad_syntax = _; //~ ERROR: expected expression, found reserved identifier `_`
31}