1 error: `if _ { .. } else { .. }` is an expression
2 --> $DIR/let_if_seq.rs:57:5
5 | _____^ starting here...
12 | |_____^ ...ending here
14 note: lint level defined here
15 --> $DIR/let_if_seq.rs:5:9
17 5 | #![deny(useless_let_if_seq)]
19 help: it is more idiomatic to write
20 | let <mut> foo = if f() { 42 } else { 0 };
21 = note: you might not need `mut` at all
23 error: `if _ { .. } else { .. }` is an expression
24 --> $DIR/let_if_seq.rs:65:5
29 help: it is more idiomatic to write
30 | let <mut> bar = if f() { ..; 42 } else { ..; 0 };
31 = note: you might not need `mut` at all
33 error: `if _ { .. } else { .. }` is an expression
34 --> $DIR/let_if_seq.rs:77:5
39 help: it is more idiomatic to write
40 | let quz = if f() { 42 } else { 0 };
42 error: `if _ { .. } else { .. }` is an expression
43 --> $DIR/let_if_seq.rs:111:5
45 111 | let mut baz = 0;
46 | _____^ starting here...
53 | |_____^ ...ending here
55 help: it is more idiomatic to write
56 | let <mut> baz = if f() { 42 } else { 0 };
57 = note: you might not need `mut` at all
59 error: aborting due to 4 previous errors