1
1
error: this let-binding has unit value
2
- --> $DIR/let_unit.rs:14 :5
2
+ --> $DIR/let_unit.rs:13 :5
3
3
|
4
4
LL | let _x = println!("x");
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `println!("x");`
6
6
|
7
7
= note: `-D clippy::let-unit-value` implied by `-D warnings`
8
8
9
9
error: this let-binding has unit value
10
- --> $DIR/let_unit.rs:18 :9
10
+ --> $DIR/let_unit.rs:17 :9
11
11
|
12
12
LL | let _a = ();
13
13
| ^^^^^^^^^^^^ help: omit the `let` binding: `();`
14
14
15
15
error: this let-binding has unit value
16
- --> $DIR/let_unit.rs:53 :5
16
+ --> $DIR/let_unit.rs:52 :5
17
17
|
18
18
LL | / let _ = v
19
19
LL | | .into_iter()
@@ -36,43 +36,43 @@ LL + .unwrap();
36
36
|
37
37
38
38
error: this let-binding has unit value
39
- --> $DIR/let_unit.rs:80 :5
39
+ --> $DIR/let_unit.rs:79 :5
40
40
|
41
41
LL | let x: () = f(); // Lint.
42
42
| ^^^^-^^^^^^^^^^^
43
43
| |
44
44
| help: use a wild (`_`) binding: `_`
45
45
46
46
error: this let-binding has unit value
47
- --> $DIR/let_unit.rs:83 :5
47
+ --> $DIR/let_unit.rs:82 :5
48
48
|
49
49
LL | let x: () = f2(0i32); // Lint.
50
50
| ^^^^-^^^^^^^^^^^^^^^^
51
51
| |
52
52
| help: use a wild (`_`) binding: `_`
53
53
54
54
error: this let-binding has unit value
55
- --> $DIR/let_unit.rs:85 :5
55
+ --> $DIR/let_unit.rs:84 :5
56
56
|
57
57
LL | let _: () = f3(()); // Lint
58
58
| ^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f3(());`
59
59
60
60
error: this let-binding has unit value
61
- --> $DIR/let_unit.rs:86 :5
61
+ --> $DIR/let_unit.rs:85 :5
62
62
|
63
63
LL | let x: () = f3(()); // Lint
64
64
| ^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f3(());`
65
65
66
66
error: this let-binding has unit value
67
- --> $DIR/let_unit.rs:102 :5
67
+ --> $DIR/let_unit.rs:101 :5
68
68
|
69
69
LL | let x: () = if true { f() } else { f2(0) }; // Lint
70
70
| ^^^^-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71
71
| |
72
72
| help: use a wild (`_`) binding: `_`
73
73
74
74
error: this let-binding has unit value
75
- --> $DIR/let_unit.rs:113 :5
75
+ --> $DIR/let_unit.rs:112 :5
76
76
|
77
77
LL | / let _: () = match Some(0) {
78
78
LL | | None => f2(1),
@@ -93,7 +93,7 @@ LL + };
93
93
|
94
94
95
95
error: this let-binding has unit value
96
- --> $DIR/let_unit.rs:160 :13
96
+ --> $DIR/let_unit.rs:159 :13
97
97
|
98
98
LL | let _: () = z;
99
99
| ^^^^^^^^^^^^^^ help: omit the `let` binding: `z;`
0 commit comments