rust/crates/syntax/test_data/parser/ok/0048_compound_assignment.rs

18 lines
257 B
Rust
Raw Normal View History

2019-03-16 16:08:50 -05:00
// https://github.com/rust-analyzer/rust-analyzer/pull/983
fn compound_assignment() {
let mut a = 0;
a += 1;
a -= 2;
a *= 3;
a %= 4;
a /= 5;
a |= 6;
a &= 7;
a ^= 8;
a <= 9;
a >= 10;
a >>= 11;
a <<= 12;
}