diff options
author | Aleksey Kladov <[email protected]> | 2018-01-28 17:48:37 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-01-28 17:53:01 +0000 |
commit | d1d47e62445806a7ecfb747989d2cb34989d5d51 (patch) | |
tree | c47d0cef58945190e9e5dcf40317450cfe0db797 /tests/data/parser/err/0008_item_block_recovery.rs | |
parent | 4adf0c20b71f8eb6365893cb1739b1cd33b081cc (diff) |
Skip over balanced parens
Diffstat (limited to 'tests/data/parser/err/0008_item_block_recovery.rs')
-rw-r--r-- | tests/data/parser/err/0008_item_block_recovery.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/data/parser/err/0008_item_block_recovery.rs b/tests/data/parser/err/0008_item_block_recovery.rs new file mode 100644 index 000000000..9fcac19b5 --- /dev/null +++ b/tests/data/parser/err/0008_item_block_recovery.rs | |||
@@ -0,0 +1,13 @@ | |||
1 | fn foo() { | ||
2 | } | ||
3 | |||
4 | bar() { | ||
5 | if true { | ||
6 | 1 | ||
7 | } else { | ||
8 | 2 + 3 | ||
9 | } | ||
10 | } | ||
11 | |||
12 | fn baz() { | ||
13 | } | ||