]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/double_must_use.stderr
Rollup merge of #102187 - b-naber:inline-const-source-info, r=eholk
[rust.git] / src / tools / clippy / tests / ui / double_must_use.stderr
1 error: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`
2   --> $DIR/double_must_use.rs:5:1
3    |
4 LL | pub fn must_use_result() -> Result<(), ()> {
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = help: either add some descriptive text or remove the attribute
8    = note: `-D clippy::double-must-use` implied by `-D warnings`
9
10 error: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`
11   --> $DIR/double_must_use.rs:10:1
12    |
13 LL | pub fn must_use_tuple() -> (Result<(), ()>, u8) {
14    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15    |
16    = help: either add some descriptive text or remove the attribute
17
18 error: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`
19   --> $DIR/double_must_use.rs:15:1
20    |
21 LL | pub fn must_use_array() -> [Result<(), ()>; 1] {
22    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23    |
24    = help: either add some descriptive text or remove the attribute
25
26 error: aborting due to 3 previous errors
27