blob: 8b5e556b1b2ed362e9ab824cd04d7ed89947573b [file] [log] [blame]
error: this unit-returning function has a `#[must_use]` attribute
--> tests/ui/must_use_unit_unfixable.rs:2:1
|
LL | fn issue_12320() {}
| ^^^^^^^^^^^^^^^^
|
help: remove `must_use`
--> tests/ui/must_use_unit_unfixable.rs:1:19
|
LL | #[cfg_attr(all(), must_use, deprecated)]
| ^^^^^^^^
= note: `-D clippy::must-use-unit` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::must_use_unit)]`
error: this unit-returning function has a `#[must_use]` attribute
--> tests/ui/must_use_unit_unfixable.rs:6:1
|
LL | fn issue_12320_2() {}
| ^^^^^^^^^^^^^^^^^^
|
help: remove `must_use`
--> tests/ui/must_use_unit_unfixable.rs:5:44
|
LL | #[cfg_attr(all(), deprecated, doc = "foo", must_use)]
| ^^^^^^^^
error: aborting due to 2 previous errors