mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
22 lines
331 B
Rust
22 lines
331 B
Rust
// run-rustfix
|
|
|
|
#[allow(dead_code, unused_assignments)]
|
|
#[warn(clippy::assign_op_pattern)]
|
|
fn main() {
|
|
let mut a = 5;
|
|
a += 1;
|
|
a += 1;
|
|
a -= 1;
|
|
a *= 99;
|
|
a *= 42;
|
|
a /= 2;
|
|
a %= 5;
|
|
a &= 1;
|
|
a = 1 - a;
|
|
a = 5 / a;
|
|
a = 42 % a;
|
|
a = 6 << a;
|
|
let mut s = String::new();
|
|
s += "bla";
|
|
}
|