diff options
Diffstat (limited to 'crates/syntax/test_data/parser/ok/0029_range_forms.rs')
-rw-r--r-- | crates/syntax/test_data/parser/ok/0029_range_forms.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/syntax/test_data/parser/ok/0029_range_forms.rs b/crates/syntax/test_data/parser/ok/0029_range_forms.rs new file mode 100644 index 000000000..f9ff444d4 --- /dev/null +++ b/crates/syntax/test_data/parser/ok/0029_range_forms.rs | |||
@@ -0,0 +1,11 @@ | |||
1 | fn foo() { | ||
2 | ..1 + 1; | ||
3 | ..z = 2; | ||
4 | x = false..1 == 1; | ||
5 | let x = 1..; | ||
6 | |||
7 | ..=1 + 1; | ||
8 | ..=z = 2; | ||
9 | x = false..=1 == 1; | ||
10 | let x = 1..; | ||
11 | } | ||