about summary refs log tree commit diff
path: root/tests/ui/attributes/unsafe/unsafe-safe-attribute_diagnostic.rs
blob: 0f241cc439f34292727dd5f7467fc8d781380beb (plain)
1
2
3
4
5
6
#[unsafe(diagnostic::on_unimplemented( //~ ERROR: is not an unsafe attribute
    message = "testing",
))]
trait Foo {}

fn main() {}