1
1
error: this let-binding has unit value
2
- --> $DIR/let_unit.rs:14 :5
2
+ --> $DIR/let_unit.rs:15 :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:19 :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:54 :5
17
17
|
18
18
LL | / let _ = v
19
19
LL | | .into_iter()
@@ -36,55 +36,55 @@ 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:81 :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:84 :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:86 :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:87 :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:88 :5
67
+ --> $DIR/let_unit.rs:89 :5
68
68
|
69
69
LL | let _: () = f4(vec![()]); // Lint
70
70
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f4(vec![()]);`
71
71
72
72
error: this let-binding has unit value
73
- --> $DIR/let_unit.rs:89 :5
73
+ --> $DIR/let_unit.rs:90 :5
74
74
|
75
75
LL | let x: () = f4(vec![()]); // Lint
76
76
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f4(vec![()]);`
77
77
78
78
error: this let-binding has unit value
79
- --> $DIR/let_unit.rs:98 :5
79
+ --> $DIR/let_unit.rs:99 :5
80
80
|
81
81
LL | let x: () = if true { f() } else { f2(0) }; // Lint
82
82
| ^^^^-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
83
83
| |
84
84
| help: use a wild (`_`) binding: `_`
85
85
86
86
error: this let-binding has unit value
87
- --> $DIR/let_unit.rs:109 :5
87
+ --> $DIR/let_unit.rs:110 :5
88
88
|
89
89
LL | / let _: () = match Some(0) {
90
90
LL | | None => f2(1),
0 commit comments