rust/tests/ui/lint/unsafe_code/unsafe-extern-blocks.rs
2024-07-23 00:29:39 -03:00

14 lines
195 B
Rust

#![deny(unsafe_code)]
#[allow(unsafe_code)]
unsafe extern "C" {
fn foo();
}
unsafe extern "C" {
//~^ ERROR usage of an `unsafe extern` block [unsafe_code]
fn bar();
}
fn main() {}