blob: 18b58116230174129772d1967096637ec2c81ab4 [file]
error: unused attribute
--> $DIR/attr-order-must-use.rs:6:1
|
LL | #[must_use = "BBB"]
| ^^^^^^^^^^^^^^^^^^^ help: remove this attribute
|
note: attribute also specified here
--> $DIR/attr-order-must-use.rs:4:1
|
LL | #[must_use = "AAA"]
| ^^^^^^^^^^^^^^^^^^^
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
note: the lint level is defined here
--> $DIR/attr-order-must-use.rs:1:9
|
LL | #![deny(unused)]
| ^^^^^^
= note: `#[deny(unused_attributes)]` implied by `#[deny(unused)]`
error: unused return value of `must_use` that must be used
--> $DIR/attr-order-must-use.rs:15:5
|
LL | must_use();
| ^^^^^^^^^^
|
= note: AAA
= note: `#[deny(unused_must_use)]` implied by `#[deny(unused)]`
help: use `let _ = ...` to ignore the resulting value
|
LL | let _ = must_use();
| +++++++
error: aborting due to 2 previous errors