rust/tests/ui/attributes/unsafe/unsafe-safe-attribute_diagn...

7 lines
133 B
Rust

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