Files
rust/tests/ui/attributes/unsafe/unsafe-safe-attribute_diagnostic.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
127 B
Rust
Raw Normal View History

2025-09-14 16:17:51 +08:00
#[unsafe(diagnostic::on_unimplemented( //~ ERROR: unnecessary `unsafe`
message = "testing",
))]
trait Foo {}
fn main() {}