rust/tests/ui/rust-2024/unsafe-extern-blocks/unsafe-on-extern-block-issu...

10 lines
171 B
Rust

//@ run-rustfix
#![allow(dead_code)]
unsafe extern "C" {
unsafe fn foo(); //~ ERROR items in unadorned `extern` blocks cannot have safety qualifiers
}
fn main() {}