mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-13 23:02:43 +00:00
25 lines
278 B
Rust
25 lines
278 B
Rust
// run-rustfix
|
|
|
|
#![allow(unused, clippy::assign_op_pattern)]
|
|
|
|
fn main() {
|
|
let a;
|
|
a = "zero";
|
|
|
|
let b;
|
|
let c;
|
|
b = 1;
|
|
c = 2;
|
|
|
|
let d: usize;
|
|
d = 1;
|
|
|
|
let mut e;
|
|
e = 1;
|
|
e = 2;
|
|
|
|
let h;
|
|
h = format!("{}", e);
|
|
|
|
println!("{}", a);
|
|
}
|