mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
19 lines
216 B
Rust
19 lines
216 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 e;
|
|
e = format!("{}", d);
|
|
}
|