1 error: this let-binding has unit value
2 --> $DIR/let_unit.rs:14:5
4 LL | let _x = println!("x");
5 | ^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `println!("x");`
7 = note: `-D clippy::let-unit-value` implied by `-D warnings`
9 error: this let-binding has unit value
10 --> $DIR/let_unit.rs:18:9
13 | ^^^^^^^^^^^^ help: omit the `let` binding: `();`
15 error: this let-binding has unit value
16 --> $DIR/let_unit.rs:53:5
20 LL | | .map(|i| i * 2)
21 LL | | .filter(|i| i % 2 == 0)
25 | |__________________^
27 help: omit the `let` binding
32 LL + .filter(|i| i % 2 == 0)
38 error: this let-binding has unit value
39 --> $DIR/let_unit.rs:80:5
41 LL | let x: () = f(); // Lint.
44 | help: use a wild (`_`) binding: `_`
46 error: this let-binding has unit value
47 --> $DIR/let_unit.rs:83:5
49 LL | let x: () = f2(0i32); // Lint.
50 | ^^^^-^^^^^^^^^^^^^^^^
52 | help: use a wild (`_`) binding: `_`
54 error: this let-binding has unit value
55 --> $DIR/let_unit.rs:85:5
57 LL | let _: () = f3(()); // Lint
58 | ^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f3(());`
60 error: this let-binding has unit value
61 --> $DIR/let_unit.rs:86:5
63 LL | let x: () = f3(()); // Lint
64 | ^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f3(());`
66 error: this let-binding has unit value
67 --> $DIR/let_unit.rs:102:5
69 LL | let x: () = if true { f() } else { f2(0) }; // Lint
70 | ^^^^-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72 | help: use a wild (`_`) binding: `_`
74 error: this let-binding has unit value
75 --> $DIR/let_unit.rs:113:5
77 LL | / let _: () = match Some(0) {
79 LL | | Some(0) => f(),
80 LL | | Some(1) => f2(3),
85 help: omit the `let` binding
90 LL + Some(1) => f2(3),
95 error: this let-binding has unit value
96 --> $DIR/let_unit.rs:160:13
99 | ^^^^^^^^^^^^^^ help: omit the `let` binding: `z;`
101 error: aborting due to 10 previous errors