blob: 5ddbd02606291b86399d82e9b236ed4d155be2e0 (
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
|
error: this function could have a `#[must_use]` attribute
--> tests/ui/must_use_candidates.rs:16:8
|
LL | pub fn pure(i: u8) -> u8 {
| ^^^^
|
= note: `-D clippy::must-use-candidate` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::must_use_candidate)]`
help: add the attribute
|
LL + #[must_use]
LL | pub fn pure(i: u8) -> u8 {
|
error: this method could have a `#[must_use]` attribute
--> tests/ui/must_use_candidates.rs:22:12
|
LL | pub fn inherent_pure(&self) -> u8 {
| ^^^^^^^^^^^^^
|
help: add the attribute
|
LL ~ #[must_use]
LL ~ pub fn inherent_pure(&self) -> u8 {
|
error: this function could have a `#[must_use]` attribute
--> tests/ui/must_use_candidates.rs:54:8
|
LL | pub fn with_marker(_d: std::marker::PhantomData<&mut u32>) -> bool {
| ^^^^^^^^^^^
|
help: add the attribute
|
LL + #[must_use]
LL | pub fn with_marker(_d: std::marker::PhantomData<&mut u32>) -> bool {
|
error: this function could have a `#[must_use]` attribute
--> tests/ui/must_use_candidates.rs:67:8
|
LL | pub fn rcd(_x: Rc<u32>) -> bool {
| ^^^
|
help: add the attribute
|
LL + #[must_use]
LL | pub fn rcd(_x: Rc<u32>) -> bool {
|
error: this function could have a `#[must_use]` attribute
--> tests/ui/must_use_candidates.rs:76:8
|
LL | pub fn arcd(_x: Arc<u32>) -> bool {
| ^^^^
|
help: add the attribute
|
LL + #[must_use]
LL | pub fn arcd(_x: Arc<u32>) -> bool {
|
error: aborting due to 5 previous errors
|