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