1 error: `if _ { .. } else { .. }` is an expression
2 --> $DIR/let_if_seq.rs:57:5
4 57 | / let mut foo = 0;
11 | |_____^ help: it is more idiomatic to write `let <mut> foo = if f() { 42 } else { 0 };`
13 note: lint level defined here
14 --> $DIR/let_if_seq.rs:5:9
16 5 | #![deny(useless_let_if_seq)]
18 = note: you might not need `mut` at all
20 error: `if _ { .. } else { .. }` is an expression
21 --> $DIR/let_if_seq.rs:65:5
23 65 | / let mut bar = 0;
30 | |_____^ help: it is more idiomatic to write `let <mut> bar = if f() { ..; 42 } else { ..; 0 };`
32 = note: you might not need `mut` at all
34 error: `if _ { .. } else { .. }` is an expression
35 --> $DIR/let_if_seq.rs:77:5
44 | |_____^ help: it is more idiomatic to write `let quz = if f() { 42 } else { 0 };`
46 error: `if _ { .. } else { .. }` is an expression
47 --> $DIR/let_if_seq.rs:111:5
49 111 | / let mut baz = 0;
56 | |_____^ help: it is more idiomatic to write `let <mut> baz = if f() { 42 } else { 0 };`
58 = note: you might not need `mut` at all
60 error: aborting due to 4 previous errors