about summary refs log tree commit diff
path: root/tests/ui/attributes/unsafe/double-unsafe-attributes.rs
blob: 894d1327da79953d471028d8f2d77bdc3591fdfe (plain)
1
2
3
4
5
6
7
#[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() {}