]> git.lizzy.rs Git - rust.git/blob - tests/ui/needless_late_init_fixable.rs
Don't lint `if_same_then_else` with `if let` conditions
[rust.git] / tests / ui / needless_late_init_fixable.rs
1 // run-rustfix
2
3 #![allow(unused, clippy::assign_op_pattern)]
4
5 fn main() {
6     let a;
7     a = "zero";
8
9     let b;
10     let c;
11     b = 1;
12     c = 2;
13
14     let d: usize;
15     d = 1;
16
17     let mut e;
18     e = 1;
19     e = 2;
20
21     let h;
22     h = format!("{}", e);
23
24     println!("{}", a);
25 }