1 error: `if _ { .. } else { .. }` is an expression
2 --> $DIR/let_if_seq.rs:63:5
4 LL | / let mut foo = 0;
8 | |_____^ help: it is more idiomatic to write: `let <mut> foo = if f() { 42 } else { 0 };`
10 = note: `-D clippy::useless-let-if-seq` implied by `-D warnings`
11 = note: you might not need `mut` at all
13 error: `if _ { .. } else { .. }` is an expression
14 --> $DIR/let_if_seq.rs:68:5
16 LL | / let mut bar = 0;
23 | |_____^ help: it is more idiomatic to write: `let <mut> bar = if f() { ..; 42 } else { ..; 0 };`
25 = note: you might not need `mut` at all
27 error: `if _ { .. } else { .. }` is an expression
28 --> $DIR/let_if_seq.rs:76:5
36 | |_____^ help: it is more idiomatic to write: `let quz = if f() { 42 } else { 0 };`
38 error: `if _ { .. } else { .. }` is an expression
39 --> $DIR/let_if_seq.rs:105:5
41 LL | / let mut baz = 0;
45 | |_____^ help: it is more idiomatic to write: `let <mut> baz = if f() { 42 } else { 0 };`
47 = note: you might not need `mut` at all
49 error: aborting due to 4 previous errors