rust/tests/ui/lint/empty-lint-attributes.rs
2024-06-25 17:22:22 +02:00

16 lines
277 B
Rust

//@ 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() {}