rust-clippy/tests/ui/needless_late_init_fixable.fixed

26 lines
266 B
Rust
Raw Normal View History

2021-11-18 13:54:49 +00:00
// run-rustfix
#![allow(unused, clippy::assign_op_pattern)]
fn main() {
let a = "zero";
let b = 1;
let c = 2;
let d: usize = 1;
let mut e = 1;
e = 2;
let h = format!("{}", e);
println!("{}", a);
}