11error: this let-binding has unit value
2- --> $DIR/let_unit.rs:14 :5
2+ --> $DIR/let_unit.rs:13 :5
33 |
44LL | let _x = println!("x");
55 | ^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `println!("x");`
66 |
77 = note: `-D clippy::let-unit-value` implied by `-D warnings`
88
99error: this let-binding has unit value
10- --> $DIR/let_unit.rs:18 :9
10+ --> $DIR/let_unit.rs:17 :9
1111 |
1212LL | let _a = ();
1313 | ^^^^^^^^^^^^ help: omit the `let` binding: `();`
1414
1515error: this let-binding has unit value
16- --> $DIR/let_unit.rs:53 :5
16+ --> $DIR/let_unit.rs:52 :5
1717 |
1818LL | / let _ = v
1919LL | | .into_iter()
@@ -36,43 +36,43 @@ LL + .unwrap();
3636 |
3737
3838error: this let-binding has unit value
39- --> $DIR/let_unit.rs:80 :5
39+ --> $DIR/let_unit.rs:79 :5
4040 |
4141LL | let x: () = f(); // Lint.
4242 | ^^^^-^^^^^^^^^^^
4343 | |
4444 | help: use a wild (`_`) binding: `_`
4545
4646error: this let-binding has unit value
47- --> $DIR/let_unit.rs:83 :5
47+ --> $DIR/let_unit.rs:82 :5
4848 |
4949LL | let x: () = f2(0i32); // Lint.
5050 | ^^^^-^^^^^^^^^^^^^^^^
5151 | |
5252 | help: use a wild (`_`) binding: `_`
5353
5454error: this let-binding has unit value
55- --> $DIR/let_unit.rs:85 :5
55+ --> $DIR/let_unit.rs:84 :5
5656 |
5757LL | let _: () = f3(()); // Lint
5858 | ^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f3(());`
5959
6060error: this let-binding has unit value
61- --> $DIR/let_unit.rs:86 :5
61+ --> $DIR/let_unit.rs:85 :5
6262 |
6363LL | let x: () = f3(()); // Lint
6464 | ^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f3(());`
6565
6666error: this let-binding has unit value
67- --> $DIR/let_unit.rs:102 :5
67+ --> $DIR/let_unit.rs:101 :5
6868 |
6969LL | let x: () = if true { f() } else { f2(0) }; // Lint
7070 | ^^^^-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7171 | |
7272 | help: use a wild (`_`) binding: `_`
7373
7474error: this let-binding has unit value
75- --> $DIR/let_unit.rs:113 :5
75+ --> $DIR/let_unit.rs:112 :5
7676 |
7777LL | / let _: () = match Some(0) {
7878LL | | None => f2(1),
@@ -93,7 +93,7 @@ LL + };
9393 |
9494
9595error: this let-binding has unit value
96- --> $DIR/let_unit.rs:160 :13
96+ --> $DIR/let_unit.rs:159 :13
9797 |
9898LL | let _: () = z;
9999 | ^^^^^^^^^^^^^^ help: omit the `let` binding: `z;`
0 commit comments