]>
Commit | Line | Data |
---|---|---|
f20569fa | 1 | error: this function could have a `#[must_use]` attribute |
781aab86 | 2 | --> $DIR/must_use_candidates.rs:16:1 |
f20569fa XL |
3 | | |
4 | LL | pub fn pure(i: u8) -> u8 { | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn pure(i: u8) -> u8` | |
6 | | | |
7 | = note: `-D clippy::must-use-candidate` implied by `-D warnings` | |
781aab86 | 8 | = help: to override `-D warnings` add `#[allow(clippy::must_use_candidate)]` |
f20569fa XL |
9 | |
10 | error: this method could have a `#[must_use]` attribute | |
781aab86 | 11 | --> $DIR/must_use_candidates.rs:21:5 |
f20569fa XL |
12 | | |
13 | LL | pub fn inherent_pure(&self) -> u8 { | |
14 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn inherent_pure(&self) -> u8` | |
15 | ||
16 | error: this function could have a `#[must_use]` attribute | |
781aab86 | 17 | --> $DIR/must_use_candidates.rs:52:1 |
f20569fa XL |
18 | | |
19 | LL | pub fn with_marker(_d: std::marker::PhantomData<&mut u32>) -> bool { | |
20 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn with_marker(_d: std::marker::PhantomData<&mut u32>) -> bool` | |
21 | ||
22 | error: this function could have a `#[must_use]` attribute | |
781aab86 | 23 | --> $DIR/must_use_candidates.rs:64:1 |
f20569fa XL |
24 | | |
25 | LL | pub fn rcd(_x: Rc<u32>) -> bool { | |
26 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn rcd(_x: Rc<u32>) -> bool` | |
27 | ||
28 | error: this function could have a `#[must_use]` attribute | |
781aab86 | 29 | --> $DIR/must_use_candidates.rs:72:1 |
f20569fa XL |
30 | | |
31 | LL | pub fn arcd(_x: Arc<u32>) -> bool { | |
32 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn arcd(_x: Arc<u32>) -> bool` | |
33 | ||
34 | error: aborting due to 5 previous errors | |
35 |