diff options
Diffstat (limited to 'tests/ui/lint/empty-lint-attributes.rs')
| -rw-r--r-- | tests/ui/lint/empty-lint-attributes.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/lint/empty-lint-attributes.rs b/tests/ui/lint/empty-lint-attributes.rs new file mode 100644 index 00000000000..9a0ec253322 --- /dev/null +++ b/tests/ui/lint/empty-lint-attributes.rs @@ -0,0 +1,17 @@ +#![feature(lint_reasons)] + +// check-pass + +// Empty (and reason-only) lint attributes are legal—although we may want to +// lint them in the future (Issue #55112). + +#![allow()] +#![warn(reason = "observationalism")] + +#[forbid()] +fn devoir() {} + +#[deny(reason = "ultion")] +fn waldgrave() {} + +fn main() {} |
