aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/test_data')
-rw-r--r--crates/ra_syntax/test_data/parser/err/0038_endless_inclusive_range.rs1
-rw-r--r--crates/ra_syntax/test_data/parser/err/0038_endless_inclusive_range.txt22
2 files changed, 15 insertions, 8 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0038_endless_inclusive_range.rs b/crates/ra_syntax/test_data/parser/err/0038_endless_inclusive_range.rs
index ecd25afaf..0b4ed7a2b 100644
--- a/crates/ra_syntax/test_data/parser/err/0038_endless_inclusive_range.rs
+++ b/crates/ra_syntax/test_data/parser/err/0038_endless_inclusive_range.rs
@@ -1,3 +1,4 @@
1fn main() { 1fn main() {
2 0..=; 2 0..=;
3 ..=;
3} 4}
diff --git a/crates/ra_syntax/test_data/parser/err/0038_endless_inclusive_range.txt b/crates/ra_syntax/test_data/parser/err/0038_endless_inclusive_range.txt
index 3efe98164..749d53609 100644
--- a/crates/ra_syntax/test_data/parser/err/0038_endless_inclusive_range.txt
+++ b/crates/ra_syntax/test_data/parser/err/0038_endless_inclusive_range.txt
@@ -1,5 +1,5 @@
1SOURCE_FILE@[0; 24) 1SOURCE_FILE@[0; 33)
2 FN_DEF@[0; 23) 2 FN_DEF@[0; 32)
3 FN_KW@[0; 2) "fn" 3 FN_KW@[0; 2) "fn"
4 WHITESPACE@[2; 3) " " 4 WHITESPACE@[2; 3) " "
5 NAME@[3; 7) 5 NAME@[3; 7)
@@ -8,8 +8,8 @@ SOURCE_FILE@[0; 24)
8 L_PAREN@[7; 8) "(" 8 L_PAREN@[7; 8) "("
9 R_PAREN@[8; 9) ")" 9 R_PAREN@[8; 9) ")"
10 WHITESPACE@[9; 10) " " 10 WHITESPACE@[9; 10) " "
11 BLOCK_EXPR@[10; 23) 11 BLOCK_EXPR@[10; 32)
12 BLOCK@[10; 23) 12 BLOCK@[10; 32)
13 L_CURLY@[10; 11) "{" 13 L_CURLY@[10; 11) "{"
14 WHITESPACE@[11; 16) "\n " 14 WHITESPACE@[11; 16) "\n "
15 EXPR_STMT@[16; 21) 15 EXPR_STMT@[16; 21)
@@ -18,7 +18,13 @@ SOURCE_FILE@[0; 24)
18 INT_NUMBER@[16; 17) "0" 18 INT_NUMBER@[16; 17) "0"
19 DOTDOTEQ@[17; 20) "..=" 19 DOTDOTEQ@[17; 20) "..="
20 SEMI@[20; 21) ";" 20 SEMI@[20; 21) ";"
21 WHITESPACE@[21; 22) "\n" 21 WHITESPACE@[21; 26) "\n "
22 R_CURLY@[22; 23) "}" 22 EXPR_STMT@[26; 30)
23 WHITESPACE@[23; 24) "\n" 23 RANGE_EXPR@[26; 29)
24error 20: expected expression to end inclusive range 24 DOTDOTEQ@[26; 29) "..="
25 SEMI@[29; 30) ";"
26 WHITESPACE@[30; 31) "\n"
27 R_CURLY@[31; 32) "}"
28 WHITESPACE@[32; 33) "\n"
29error [17; 20): An inclusive range must have an end expression
30error [26; 29): An inclusive range must have an end expression