summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/must_use_candidates.stderr
blob: 0fa3849d03bff662169944e0758e018895355b06 (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
error: this function could have a `#[must_use]` attribute
  --> $DIR/must_use_candidates.rs:12:1
   |
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
  --> $DIR/must_use_candidates.rs:17:5
   |
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
  --> $DIR/must_use_candidates.rs:48:1
   |
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
  --> $DIR/must_use_candidates.rs:60:1
   |
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
  --> $DIR/must_use_candidates.rs:68:1
   |
LL | pub fn arcd(_x: Arc<u32>) -> bool {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn arcd(_x: Arc<u32>) -> bool`

error: aborting due to 5 previous errors