diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-08-12 17:31:42 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-12 17:31:42 +0100 |
commit | d583f2c46d22cf8d643ebf98be9cb7059a304431 (patch) | |
tree | 9d898eb9600b0c36a74e4f95238f679c683fa566 /crates/syntax/test_data/parser/ok/0048_compound_assignment.rs | |
parent | 3d6889cba72a9d02199f7adaa2ecc69bc30af834 (diff) | |
parent | a1c187eef3ba08076aedb5154929f7eda8d1b424 (diff) |
Merge #5729
5729: Rename ra_syntax -> syntax
r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/syntax/test_data/parser/ok/0048_compound_assignment.rs')
-rw-r--r-- | crates/syntax/test_data/parser/ok/0048_compound_assignment.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crates/syntax/test_data/parser/ok/0048_compound_assignment.rs b/crates/syntax/test_data/parser/ok/0048_compound_assignment.rs new file mode 100644 index 000000000..871720a49 --- /dev/null +++ b/crates/syntax/test_data/parser/ok/0048_compound_assignment.rs | |||
@@ -0,0 +1,17 @@ | |||
1 | // https://github.com/rust-analyzer/rust-analyzer/pull/983 | ||
2 | |||
3 | fn compound_assignment() { | ||
4 | let mut a = 0; | ||
5 | a += 1; | ||
6 | a -= 2; | ||
7 | a *= 3; | ||
8 | a %= 4; | ||
9 | a /= 5; | ||
10 | a |= 6; | ||
11 | a &= 7; | ||
12 | a ^= 8; | ||
13 | a <= 9; | ||
14 | a >= 10; | ||
15 | a >>= 11; | ||
16 | a <<= 12; | ||
17 | } | ||