rust/tests/ui/attributes/unsafe/unsafe-safe-attribute_diagnostic.rs
2024-08-07 03:12:13 -05:00

7 lines
133 B
Rust

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