1 error: this function could have a `#[must_use]` attribute
2 --> $DIR/must_use_candidates.rs:12:1
4 LL | pub fn pure(i: u8) -> u8 {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn pure(i: u8) -> u8`
7 = note: `-D clippy::must-use-candidate` implied by `-D warnings`
9 error: this method could have a `#[must_use]` attribute
10 --> $DIR/must_use_candidates.rs:17:5
12 LL | pub fn inherent_pure(&self) -> u8 {
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn inherent_pure(&self) -> u8`
15 error: this function could have a `#[must_use]` attribute
16 --> $DIR/must_use_candidates.rs:48:1
18 LL | pub fn with_marker(_d: std::marker::PhantomData<&mut u32>) -> bool {
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn with_marker(_d: std::marker::PhantomData<&mut u32>) -> bool`
21 error: this function could have a `#[must_use]` attribute
22 --> $DIR/must_use_candidates.rs:60:1
24 LL | pub fn rcd(_x: Rc<u32>) -> bool {
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn rcd(_x: Rc<u32>) -> bool`
27 error: this function could have a `#[must_use]` attribute
28 --> $DIR/must_use_candidates.rs:68:1
30 LL | pub fn arcd(_x: Arc<u32>) -> bool {
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn arcd(_x: Arc<u32>) -> bool`
33 error: aborting due to 5 previous errors