1 error: `if _ { .. } else { .. }` is an expression
2 --> $DIR/let_if_seq.rs:57:5
4 57 | / let mut foo = 0;
13 note: lint level defined here
14 --> $DIR/let_if_seq.rs:5:9
16 5 | #![deny(useless_let_if_seq)]
18 help: it is more idiomatic to write
19 | let <mut> foo = if f() { 42 } else { 0 };
20 = note: you might not need `mut` at all
22 error: `if _ { .. } else { .. }` is an expression
23 --> $DIR/let_if_seq.rs:65:5
25 65 | / let mut bar = 0;
34 help: it is more idiomatic to write
35 | let <mut> bar = if f() { ..; 42 } else { ..; 0 };
36 = note: you might not need `mut` at all
38 error: `if _ { .. } else { .. }` is an expression
39 --> $DIR/let_if_seq.rs:77:5
50 help: it is more idiomatic to write
51 | let quz = if f() { 42 } else { 0 };
53 error: `if _ { .. } else { .. }` is an expression
54 --> $DIR/let_if_seq.rs:111:5
56 111 | / let mut baz = 0;
65 help: it is more idiomatic to write
66 | let <mut> baz = if f() { 42 } else { 0 };
67 = note: you might not need `mut` at all
69 error: aborting due to 4 previous errors