rust/tests/ui/attributes/unsafe/unsafe-safe-attribute_diagnostic.rs
2024-06-06 20:26:28 -05:00

9 lines
165 B
Rust

#![feature(unsafe_attributes)]
#[unsafe(diagnostic::on_unimplemented( //~ ERROR: is not an unsafe attribute
message = "testing",
))]
trait Foo {}
fn main() {}