|
1 | | -error: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]` |
| 1 | +error: this function has a `#[must_use]` attribute with no message, but returns a type already marked as `#[must_use]` |
2 | 2 | --> tests/ui/double_must_use.rs:5:1 |
3 | 3 | | |
4 | 4 | LL | pub fn must_use_result() -> Result<(), ()> { |
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
6 | 6 | | |
7 | | - = help: either add some descriptive text or remove the attribute |
| 7 | + = help: either add some descriptive message or remove the attribute |
8 | 8 | = note: `-D clippy::double-must-use` implied by `-D warnings` |
9 | 9 | = help: to override `-D warnings` add `#[allow(clippy::double_must_use)]` |
10 | 10 |
|
11 | | -error: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]` |
| 11 | +error: this function has a `#[must_use]` attribute with no message, but returns a type already marked as `#[must_use]` |
12 | 12 | --> tests/ui/double_must_use.rs:11:1 |
13 | 13 | | |
14 | 14 | LL | pub fn must_use_tuple() -> (Result<(), ()>, u8) { |
15 | 15 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
16 | 16 | | |
17 | | - = help: either add some descriptive text or remove the attribute |
| 17 | + = help: either add some descriptive message or remove the attribute |
18 | 18 |
|
19 | | -error: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]` |
| 19 | +error: this function has a `#[must_use]` attribute with no message, but returns a type already marked as `#[must_use]` |
20 | 20 | --> tests/ui/double_must_use.rs:17:1 |
21 | 21 | | |
22 | 22 | LL | pub fn must_use_array() -> [Result<(), ()>; 1] { |
23 | 23 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
24 | 24 | | |
25 | | - = help: either add some descriptive text or remove the attribute |
| 25 | + = help: either add some descriptive message or remove the attribute |
26 | 26 |
|
27 | | -error: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]` |
| 27 | +error: this function has a `#[must_use]` attribute with no message, but returns a type already marked as `#[must_use]` |
28 | 28 | --> tests/ui/double_must_use.rs:34:1 |
29 | 29 | | |
30 | 30 | LL | async fn async_must_use_result() -> Result<(), ()> { |
31 | 31 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
32 | 32 | | |
33 | | - = help: either add some descriptive text or remove the attribute |
| 33 | + = help: either add some descriptive message or remove the attribute |
34 | 34 |
|
35 | 35 | error: aborting due to 4 previous errors |
36 | 36 |
|
0 commit comments