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)
37 error: this let-binding has unit value
38 --> $DIR/let_unit.rs:80:5
40 LL | let x: () = f(); // Lint.
43 | help: use a wild (`_`) binding: `_`
45 error: this let-binding has unit value
46 --> $DIR/let_unit.rs:83:5
48 LL | let x: () = f2(0i32); // Lint.
49 | ^^^^-^^^^^^^^^^^^^^^^
51 | help: use a wild (`_`) binding: `_`
53 error: this let-binding has unit value
54 --> $DIR/let_unit.rs:85:5
56 LL | let _: () = f3(()); // Lint
57 | ^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f3(());`
59 error: this let-binding has unit value
60 --> $DIR/let_unit.rs:86:5
62 LL | let x: () = f3(()); // Lint
63 | ^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f3(());`
65 error: this let-binding has unit value
66 --> $DIR/let_unit.rs:88:5
68 LL | let _: () = f4(vec![()]); // Lint
69 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f4(vec![()]);`
71 error: this let-binding has unit value
72 --> $DIR/let_unit.rs:89:5
74 LL | let x: () = f4(vec![()]); // Lint
75 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f4(vec![()]);`
77 error: aborting due to 9 previous errors