rust/tests/ui/rust-2024/unsafe-extern-blocks/unsafe-on-extern-block-issue-126756.fixed
2024-10-11 11:30:08 -04:00

10 lines
191 B
Rust

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