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:88:5
69 LL | let _: () = f4(vec![()]); // Lint
70 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f4(vec![()]);`
72 error: this let-binding has unit value
73 --> $DIR/let_unit.rs:89:5
75 LL | let x: () = f4(vec![()]); // Lint
76 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f4(vec![()]);`
78 error: this let-binding has unit value
79 --> $DIR/let_unit.rs:98:5
81 LL | let x: () = if true { f() } else { f2(0) }; // Lint
82 | ^^^^-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84 | help: use a wild (`_`) binding: `_`
86 error: this let-binding has unit value
87 --> $DIR/let_unit.rs:109:5
89 LL | / let _: () = match Some(0) {
91 LL | | Some(0) => f(),
92 LL | | Some(1) => f2(3),
97 help: omit the `let` binding
102 LL + Some(1) => f2(3),
107 error: aborting due to 11 previous errors