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

8 lines
215 B
Rust

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