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
27 | _____^ starting here...
34 | |_____^ ...ending here
36 help: it is more idiomatic to write
37 | let <mut> bar = if f() { ..; 42 } else { ..; 0 };
38 = note: you might not need `mut` at all
40 error: `if _ { .. } else { .. }` is an expression
41 --> $DIR/let_if_seq.rs:77:5
44 | _____^ starting here...
51 | |_____^ ...ending here
53 help: it is more idiomatic to write
54 | let quz = if f() { 42 } else { 0 };
56 error: `if _ { .. } else { .. }` is an expression
57 --> $DIR/let_if_seq.rs:111:5
59 111 | let mut baz = 0;
60 | _____^ starting here...
67 | |_____^ ...ending here
69 help: it is more idiomatic to write
70 | let <mut> baz = if f() { 42 } else { 0 };
71 = note: you might not need `mut` at all
73 error: aborting due to 4 previous errors