mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 01:25:54 +00:00
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
error: `allow` attribute without specifying a reason
|
|
--> $DIR/allow_attributes_without_reason.rs:4:1
|
|
|
|
|
LL | #![allow(unfulfilled_lint_expectations)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try adding a reason at the end with `, reason = ".."`
|
|
note: the lint level is defined here
|
|
--> $DIR/allow_attributes_without_reason.rs:3:9
|
|
|
|
|
LL | #![deny(clippy::allow_attributes_without_reason)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `allow` attribute without specifying a reason
|
|
--> $DIR/allow_attributes_without_reason.rs:10:1
|
|
|
|
|
LL | #[allow(dead_code)]
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try adding a reason at the end with `, reason = ".."`
|
|
|
|
error: `allow` attribute without specifying a reason
|
|
--> $DIR/allow_attributes_without_reason.rs:11:1
|
|
|
|
|
LL | #[allow(dead_code, deprecated)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try adding a reason at the end with `, reason = ".."`
|
|
|
|
error: `expect` attribute without specifying a reason
|
|
--> $DIR/allow_attributes_without_reason.rs:12:1
|
|
|
|
|
LL | #[expect(dead_code)]
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try adding a reason at the end with `, reason = ".."`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|