rust/tests/ui/parser/unsafe-foreign-mod-2.rs

7 lines
109 B
Rust

extern "C" unsafe {
//~^ ERROR expected `{`, found keyword `unsafe`
unsafe fn foo();
}
fn main() {}