Files
rust/tests/ui/attributes/unsafe/double-unsafe-attributes.rs
2025-10-01 16:19:39 -07:00

8 lines
198 B
Rust

#[unsafe(unsafe(no_mangle))]
//~^ ERROR expected identifier, found keyword `unsafe`
//~| ERROR cannot find attribute `r#unsafe` in this scope
//~| ERROR unnecessary `unsafe`
fn a() {}
fn main() {}