diff options
author | Lukas Wirth <[email protected]> | 2020-12-23 01:15:30 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2020-12-23 01:15:44 +0000 |
commit | 2c94c4964aa6242098f97ca3421a750a763567b4 (patch) | |
tree | 2474ee18f391cffd027b5ebdce7ddb5c7e43e8c3 /crates/syntax/test_data/parser | |
parent | 03a9bbacf2a82faaecc269c1d97dea392f4f9874 (diff) |
Parse const effect block
Diffstat (limited to 'crates/syntax/test_data/parser')
-rw-r--r-- | crates/syntax/test_data/parser/inline/ok/0157_const_block.rast | 23 | ||||
-rw-r--r-- | crates/syntax/test_data/parser/inline/ok/0157_const_block.rs | 1 |
2 files changed, 24 insertions, 0 deletions
diff --git a/crates/syntax/test_data/parser/inline/ok/0157_const_block.rast b/crates/syntax/test_data/parser/inline/ok/0157_const_block.rast new file mode 100644 index 000000000..d5d2c8fe3 --- /dev/null +++ b/crates/syntax/test_data/parser/inline/ok/0157_const_block.rast | |||
@@ -0,0 +1,23 @@ | |||
1 | [email protected] | ||
2 | [email protected] | ||
3 | [email protected] "fn" | ||
4 | [email protected] " " | ||
5 | [email protected] | ||
6 | [email protected] "f" | ||
7 | [email protected] | ||
8 | [email protected] "(" | ||
9 | [email protected] ")" | ||
10 | [email protected] " " | ||
11 | [email protected] | ||
12 | [email protected] "{" | ||
13 | [email protected] " " | ||
14 | [email protected] | ||
15 | [email protected] "const" | ||
16 | [email protected] " " | ||
17 | [email protected] | ||
18 | [email protected] "{" | ||
19 | [email protected] " " | ||
20 | [email protected] "}" | ||
21 | [email protected] " " | ||
22 | [email protected] "}" | ||
23 | [email protected] "\n" | ||
diff --git a/crates/syntax/test_data/parser/inline/ok/0157_const_block.rs b/crates/syntax/test_data/parser/inline/ok/0157_const_block.rs new file mode 100644 index 000000000..a2e3565a3 --- /dev/null +++ b/crates/syntax/test_data/parser/inline/ok/0157_const_block.rs | |||
@@ -0,0 +1 @@ | |||
fn f() { const { } } | |||