1 error: `if _ { .. } else { .. }` is an expression
4 57 | / let mut foo = 0;
8 | |_____^ help: it is more idiomatic to write `let <mut> foo = if f() { 42 } else { 0 };`
10 = note: `-D 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 --> let_if_seq.rs:62:5
16 62 | / let mut bar = 0;
23 | |_____^ help: it is more idiomatic to write `let <mut> bar = if f() { ..; 42 } else { ..; 0 };`
25 = note: `-D useless-let-if-seq` implied by `-D warnings`
26 = note: you might not need `mut` at all
28 error: `if _ { .. } else { .. }` is an expression
29 --> let_if_seq.rs:71:5
37 | |_____^ help: it is more idiomatic to write `let quz = if f() { 42 } else { 0 };`
39 = note: `-D useless-let-if-seq` implied by `-D warnings`
41 error: `if _ { .. } else { .. }` is an expression
42 --> let_if_seq.rs:100:5
44 100 | / let mut baz = 0;
48 | |_____^ help: it is more idiomatic to write `let <mut> baz = if f() { 42 } else { 0 };`
50 = note: `-D useless-let-if-seq` implied by `-D warnings`
51 = note: you might not need `mut` at all
53 error: aborting due to previous error(s)
55 error: Could not compile `clippy_tests`.
57 To learn more, run the command again with --verbose.