diff options
author | DJMcNab <[email protected]> | 2018-12-20 11:35:02 +0000 |
---|---|---|
committer | DJMcNab <[email protected]> | 2018-12-20 11:35:02 +0000 |
commit | 5205c016e9f704796aa7893f89ef108248bda2e2 (patch) | |
tree | 8ae27dbe907f3951605c9b213721dab5ba9b5497 /crates/ra_syntax/tests/data/parser/inline/0119_break_ambiguity.rs | |
parent | 8693b1342093e71c1c39db0daee8580687e749f2 (diff) |
Fix ambiguity with if break
Brought up by #290
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/inline/0119_break_ambiguity.rs')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/0119_break_ambiguity.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ra_syntax/tests/data/parser/inline/0119_break_ambiguity.rs b/crates/ra_syntax/tests/data/parser/inline/0119_break_ambiguity.rs new file mode 100644 index 000000000..560eb05b9 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/inline/0119_break_ambiguity.rs | |||
@@ -0,0 +1,6 @@ | |||
1 | fn foo(){ | ||
2 | if break {} | ||
3 | while break {} | ||
4 | for i in break {} | ||
5 | match break {} | ||
6 | } | ||