2019-09-18 01:37:41 -05:00
|
|
|
error: this function could have a `#[must_use]` attribute
|
2023-07-17 03:19:29 -05:00
|
|
|
--> $DIR/must_use_candidates.rs:17:1
|
2019-09-18 01:37:41 -05:00
|
|
|
|
|
|
|
|
LL | pub fn pure(i: u8) -> u8 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn pure(i: u8) -> u8`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::must-use-candidate` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: this method could have a `#[must_use]` attribute
|
2023-07-17 03:19:29 -05:00
|
|
|
--> $DIR/must_use_candidates.rs:22:5
|
2019-09-18 01:37:41 -05:00
|
|
|
|
|
|
|
|
LL | pub fn inherent_pure(&self) -> u8 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn inherent_pure(&self) -> u8`
|
|
|
|
|
|
|
|
error: this function could have a `#[must_use]` attribute
|
2023-07-17 03:19:29 -05:00
|
|
|
--> $DIR/must_use_candidates.rs:53:1
|
2019-09-18 01:37:41 -05:00
|
|
|
|
|
|
|
|
LL | pub fn with_marker(_d: std::marker::PhantomData<&mut u32>) -> bool {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn with_marker(_d: std::marker::PhantomData<&mut u32>) -> bool`
|
|
|
|
|
|
|
|
error: this function could have a `#[must_use]` attribute
|
2023-07-17 03:19:29 -05:00
|
|
|
--> $DIR/must_use_candidates.rs:65:1
|
2019-09-18 01:37:41 -05:00
|
|
|
|
|
|
|
|
LL | pub fn rcd(_x: Rc<u32>) -> bool {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn rcd(_x: Rc<u32>) -> bool`
|
|
|
|
|
|
|
|
error: this function could have a `#[must_use]` attribute
|
2023-07-17 03:19:29 -05:00
|
|
|
--> $DIR/must_use_candidates.rs:73:1
|
2019-09-18 01:37:41 -05:00
|
|
|
|
|
|
|
|
LL | pub fn arcd(_x: Arc<u32>) -> bool {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn arcd(_x: Arc<u32>) -> bool`
|
|
|
|
|
2019-11-12 16:36:22 -06:00
|
|
|
error: aborting due to 5 previous errors
|
2019-09-18 01:37:41 -05:00
|
|
|
|