Files
rust/tests/ui/lint/empty-lint-attributes.rs
Jonathan Brouwer 66b8a9db1f Update uitests with new unused_attributes warnings
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-10-18 21:17:48 +02:00

16 lines
381 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 unused attribute
#![warn(reason = "observationalism")] //~ WARN unused attribute
#[forbid()] //~ WARN unused attribute
fn devoir() {}
#[deny(reason = "ultion")] //~ WARN unused attribute
fn waldgrave() {}
fn main() {}