rustc/tests/ui/attributes/unsafe/unsafe-safe-attribute_diagnostic.rs
2024-10-21 11:08:01 +02:00

7 lines
133 B
Rust

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