diff options
Diffstat (limited to 'crates/syntax/test_data/parser/inline/ok/0082_ref_expr.rs')
-rw-r--r-- | crates/syntax/test_data/parser/inline/ok/0082_ref_expr.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/syntax/test_data/parser/inline/ok/0082_ref_expr.rs b/crates/syntax/test_data/parser/inline/ok/0082_ref_expr.rs new file mode 100644 index 000000000..c5262f446 --- /dev/null +++ b/crates/syntax/test_data/parser/inline/ok/0082_ref_expr.rs | |||
@@ -0,0 +1,10 @@ | |||
1 | fn foo() { | ||
2 | // reference operator | ||
3 | let _ = &1; | ||
4 | let _ = &mut &f(); | ||
5 | let _ = &raw; | ||
6 | let _ = &raw.0; | ||
7 | // raw reference operator | ||
8 | let _ = &raw mut foo; | ||
9 | let _ = &raw const foo; | ||
10 | } | ||