summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/let_underscore_must_use.stderr
blob: bae60f2ff9b79f7af718679cab33f8417c718ca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
error: non-binding let on a result of a `#[must_use]` function
  --> $DIR/let_underscore_must_use.rs:67:5
   |
LL |     let _ = f();
   |     ^^^^^^^^^^^^
   |
   = help: consider explicitly using function result
   = note: `-D clippy::let-underscore-must-use` implied by `-D warnings`

error: non-binding let on an expression with `#[must_use]` type
  --> $DIR/let_underscore_must_use.rs:68:5
   |
LL |     let _ = g();
   |     ^^^^^^^^^^^^
   |
   = help: consider explicitly using expression value

error: non-binding let on a result of a `#[must_use]` function
  --> $DIR/let_underscore_must_use.rs:70:5
   |
LL |     let _ = l(0_u32);
   |     ^^^^^^^^^^^^^^^^^
   |
   = help: consider explicitly using function result

error: non-binding let on a result of a `#[must_use]` function
  --> $DIR/let_underscore_must_use.rs:74:5
   |
LL |     let _ = s.f();
   |     ^^^^^^^^^^^^^^
   |
   = help: consider explicitly using function result

error: non-binding let on an expression with `#[must_use]` type
  --> $DIR/let_underscore_must_use.rs:75:5
   |
LL |     let _ = s.g();
   |     ^^^^^^^^^^^^^^
   |
   = help: consider explicitly using expression value

error: non-binding let on a result of a `#[must_use]` function
  --> $DIR/let_underscore_must_use.rs:78:5
   |
LL |     let _ = S::h();
   |     ^^^^^^^^^^^^^^^
   |
   = help: consider explicitly using function result

error: non-binding let on an expression with `#[must_use]` type
  --> $DIR/let_underscore_must_use.rs:79:5
   |
LL |     let _ = S::p();
   |     ^^^^^^^^^^^^^^^
   |
   = help: consider explicitly using expression value

error: non-binding let on a result of a `#[must_use]` function
  --> $DIR/let_underscore_must_use.rs:81:5
   |
LL |     let _ = S::a();
   |     ^^^^^^^^^^^^^^^
   |
   = help: consider explicitly using function result

error: non-binding let on an expression with `#[must_use]` type
  --> $DIR/let_underscore_must_use.rs:83:5
   |
LL |     let _ = if true { Ok(()) } else { Err(()) };
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider explicitly using expression value

error: non-binding let on a result of a `#[must_use]` function
  --> $DIR/let_underscore_must_use.rs:87:5
   |
LL |     let _ = a.is_ok();
   |     ^^^^^^^^^^^^^^^^^^
   |
   = help: consider explicitly using function result

error: non-binding let on an expression with `#[must_use]` type
  --> $DIR/let_underscore_must_use.rs:89:5
   |
LL |     let _ = a.map(|_| ());
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider explicitly using expression value

error: non-binding let on an expression with `#[must_use]` type
  --> $DIR/let_underscore_must_use.rs:91:5
   |
LL |     let _ = a;
   |     ^^^^^^^^^^
   |
   = help: consider explicitly using expression value

error: aborting due to 12 previous errors