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