]> git.lizzy.rs Git - rust.git/blob - tests/ui/must_use_candidates.stderr
Auto merge of #6298 - JohnTitor:fix-example, r=llogiq
[rust.git] / tests / ui / must_use_candidates.stderr
1 error: this function could have a `#[must_use]` attribute
2   --> $DIR/must_use_candidates.rs:12:1
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`
8
9 error: this method could have a `#[must_use]` attribute
10   --> $DIR/must_use_candidates.rs:17:5
11    |
12 LL |     pub fn inherent_pure(&self) -> u8 {
13    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn inherent_pure(&self) -> u8`
14
15 error: this function could have a `#[must_use]` attribute
16   --> $DIR/must_use_candidates.rs:48:1
17    |
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`
20
21 error: this function could have a `#[must_use]` attribute
22   --> $DIR/must_use_candidates.rs:60:1
23    |
24 LL | pub fn rcd(_x: Rc<u32>) -> bool {
25    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn rcd(_x: Rc<u32>) -> bool`
26
27 error: this function could have a `#[must_use]` attribute
28   --> $DIR/must_use_candidates.rs:68:1
29    |
30 LL | pub fn arcd(_x: Arc<u32>) -> bool {
31    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn arcd(_x: Arc<u32>) -> bool`
32
33 error: aborting due to 5 previous errors
34