]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/must_use_candidates.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / must_use_candidates.stderr
CommitLineData
f20569fa
XL
1error: this function could have a `#[must_use]` attribute
2 --> $DIR/must_use_candidates.rs:12:1
3 |
4LL | 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
9error: this method could have a `#[must_use]` attribute
10 --> $DIR/must_use_candidates.rs:17:5
11 |
12LL | pub fn inherent_pure(&self) -> u8 {
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn inherent_pure(&self) -> u8`
14
15error: this function could have a `#[must_use]` attribute
16 --> $DIR/must_use_candidates.rs:48:1
17 |
18LL | 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
21error: this function could have a `#[must_use]` attribute
22 --> $DIR/must_use_candidates.rs:60:1
23 |
24LL | pub fn rcd(_x: Rc<u32>) -> bool {
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn rcd(_x: Rc<u32>) -> bool`
26
27error: this function could have a `#[must_use]` attribute
28 --> $DIR/must_use_candidates.rs:68:1
29 |
30LL | pub fn arcd(_x: Arc<u32>) -> bool {
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn arcd(_x: Arc<u32>) -> bool`
32
33error: aborting due to 5 previous errors
34