rust/tests/ui/attributes/unsafe/double-unsafe-attributes.rs
2024-06-06 20:27:25 -05:00

10 lines
247 B
Rust

#![feature(unsafe_attributes)]
#[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() {}