1 error: `if _ { .. } else { .. }` is an expression
2 --> $DIR/let_if_seq.rs:57:5
4 57 | / let mut foo = 0;
8 | |_____^ help: it is more idiomatic to write `let <mut> foo = if f() { 42 } else { 0 };`
10 note: lint level defined here
11 --> $DIR/let_if_seq.rs:5:9
13 5 | #![deny(useless_let_if_seq)]
15 = note: you might not need `mut` at all
17 error: `if _ { .. } else { .. }` is an expression
18 --> $DIR/let_if_seq.rs:62:5
20 62 | / let mut bar = 0;
27 | |_____^ help: it is more idiomatic to write `let <mut> bar = if f() { ..; 42 } else { ..; 0 };`
29 = note: you might not need `mut` at all
31 error: `if _ { .. } else { .. }` is an expression
32 --> $DIR/let_if_seq.rs:71:5
40 | |_____^ help: it is more idiomatic to write `let quz = if f() { 42 } else { 0 };`
42 error: `if _ { .. } else { .. }` is an expression
43 --> $DIR/let_if_seq.rs:100:5
45 100 | / let mut baz = 0;
49 | |_____^ help: it is more idiomatic to write `let <mut> baz = if f() { 42 } else { 0 };`
51 = note: you might not need `mut` at all
53 error: aborting due to 4 previous errors