1
1
error: non-binding let on a result of a `#[must_use]` function
2
- --> $DIR/let_underscore.rs:59 :5
2
+ --> $DIR/let_underscore.rs:66 :5
3
3
|
4
4
LL | let _ = f();
5
5
| ^^^^^^^^^^^^
@@ -8,87 +8,87 @@ LL | let _ = f();
8
8
= help: consider explicitly using function result
9
9
10
10
error: non-binding let on an expression with `#[must_use]` type
11
- --> $DIR/let_underscore.rs:60 :5
11
+ --> $DIR/let_underscore.rs:67 :5
12
12
|
13
13
LL | let _ = g();
14
14
| ^^^^^^^^^^^^
15
15
|
16
16
= help: consider explicitly using expression value
17
17
18
18
error: non-binding let on a result of a `#[must_use]` function
19
- --> $DIR/let_underscore.rs:62 :5
19
+ --> $DIR/let_underscore.rs:69 :5
20
20
|
21
21
LL | let _ = l(0_u32);
22
22
| ^^^^^^^^^^^^^^^^^
23
23
|
24
24
= help: consider explicitly using function result
25
25
26
26
error: non-binding let on a result of a `#[must_use]` function
27
- --> $DIR/let_underscore.rs:66 :5
27
+ --> $DIR/let_underscore.rs:73 :5
28
28
|
29
29
LL | let _ = s.f();
30
30
| ^^^^^^^^^^^^^^
31
31
|
32
32
= help: consider explicitly using function result
33
33
34
34
error: non-binding let on an expression with `#[must_use]` type
35
- --> $DIR/let_underscore.rs:67 :5
35
+ --> $DIR/let_underscore.rs:74 :5
36
36
|
37
37
LL | let _ = s.g();
38
38
| ^^^^^^^^^^^^^^
39
39
|
40
40
= help: consider explicitly using expression value
41
41
42
42
error: non-binding let on a result of a `#[must_use]` function
43
- --> $DIR/let_underscore.rs:70 :5
43
+ --> $DIR/let_underscore.rs:77 :5
44
44
|
45
45
LL | let _ = S::h();
46
46
| ^^^^^^^^^^^^^^^
47
47
|
48
48
= help: consider explicitly using function result
49
49
50
50
error: non-binding let on an expression with `#[must_use]` type
51
- --> $DIR/let_underscore.rs:71 :5
51
+ --> $DIR/let_underscore.rs:78 :5
52
52
|
53
53
LL | let _ = S::p();
54
54
| ^^^^^^^^^^^^^^^
55
55
|
56
56
= help: consider explicitly using expression value
57
57
58
58
error: non-binding let on a result of a `#[must_use]` function
59
- --> $DIR/let_underscore.rs:73 :5
59
+ --> $DIR/let_underscore.rs:80 :5
60
60
|
61
61
LL | let _ = S::a();
62
62
| ^^^^^^^^^^^^^^^
63
63
|
64
64
= help: consider explicitly using function result
65
65
66
66
error: non-binding let on an expression with `#[must_use]` type
67
- --> $DIR/let_underscore.rs:75 :5
67
+ --> $DIR/let_underscore.rs:82 :5
68
68
|
69
69
LL | let _ = if true { Ok(()) } else { Err(()) };
70
70
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71
71
|
72
72
= help: consider explicitly using expression value
73
73
74
74
error: non-binding let on a result of a `#[must_use]` function
75
- --> $DIR/let_underscore.rs:79 :5
75
+ --> $DIR/let_underscore.rs:86 :5
76
76
|
77
77
LL | let _ = a.is_ok();
78
78
| ^^^^^^^^^^^^^^^^^^
79
79
|
80
80
= help: consider explicitly using function result
81
81
82
82
error: non-binding let on an expression with `#[must_use]` type
83
- --> $DIR/let_underscore.rs:81 :5
83
+ --> $DIR/let_underscore.rs:88 :5
84
84
|
85
85
LL | let _ = a.map(|_| ());
86
86
| ^^^^^^^^^^^^^^^^^^^^^^
87
87
|
88
88
= help: consider explicitly using expression value
89
89
90
90
error: non-binding let on an expression with `#[must_use]` type
91
- --> $DIR/let_underscore.rs:83 :5
91
+ --> $DIR/let_underscore.rs:90 :5
92
92
|
93
93
LL | let _ = a;
94
94
| ^^^^^^^^^^
0 commit comments