fork/rust

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

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

master
916 B29 linesraw
1error: this unit-returning function has a `#[must_use]` attribute
2  --> $DIR/must_use_unit.rs:10:1
3   |
4LL | #[must_use]
5   | ----------- help: remove the attribute
6LL | pub fn must_use_default() {}
7   | ^^^^^^^^^^^^^^^^^^^^^^^^^
8   |
9   = note: `-D clippy::must-use-unit` implied by `-D warnings`
10   = help: to override `-D warnings` add `#[allow(clippy::must_use_unit)]`
11
12error: this unit-returning function has a `#[must_use]` attribute
13  --> $DIR/must_use_unit.rs:13:1
14   |
15LL | #[must_use]
16   | ----------- help: remove the attribute
17LL | pub fn must_use_unit() -> () {}
18   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19
20error: this unit-returning function has a `#[must_use]` attribute
21  --> $DIR/must_use_unit.rs:16:1
22   |
23LL | #[must_use = "With note"]
24   | ------------------------- help: remove the attribute
25LL | pub fn must_use_with_note() {}
26   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
27
28error: aborting due to 3 previous errors
29