rust/tests/ui/diagnostic_namespace/deny_malformed_attribute.rs

8 lines
152 B
Rust

#![deny(unknown_or_malformed_diagnostic_attributes)]
#[diagnostic::unknown_attribute]
//~^ERROR unknown diagnostic attribute
struct Foo;
fn main() {}