diff options
Diffstat (limited to 'crates/syntax/test_data/parser/ok/0058_unary_expr_precedence.rs')
-rw-r--r-- | crates/syntax/test_data/parser/ok/0058_unary_expr_precedence.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/syntax/test_data/parser/ok/0058_unary_expr_precedence.rs b/crates/syntax/test_data/parser/ok/0058_unary_expr_precedence.rs new file mode 100644 index 000000000..100fccc64 --- /dev/null +++ b/crates/syntax/test_data/parser/ok/0058_unary_expr_precedence.rs | |||
@@ -0,0 +1,7 @@ | |||
1 | fn foo() { | ||
2 | 1 + *&2 + 3; | ||
3 | *&1 as u64; | ||
4 | *x(1); | ||
5 | &x[1]; | ||
6 | -1..2; | ||
7 | } | ||