fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.5 KiB36 linesraw
1error: 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   |
4LL | 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   = help: to override `-D warnings` add `#[allow(clippy::double_must_use)]`
10
11error: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`
12  --> $DIR/double_must_use.rs:11:1
13   |
14LL | pub fn must_use_tuple() -> (Result<(), ()>, u8) {
15   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16   |
17   = help: either add some descriptive text or remove the attribute
18
19error: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`
20  --> $DIR/double_must_use.rs:17:1
21   |
22LL | pub fn must_use_array() -> [Result<(), ()>; 1] {
23   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24   |
25   = help: either add some descriptive text or remove the attribute
26
27error: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`
28  --> $DIR/double_must_use.rs:34:1
29   |
30LL | async fn async_must_use_result() -> Result<(), ()> {
31   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32   |
33   = help: either add some descriptive text or remove the attribute
34
35error: aborting due to 4 previous errors
36