mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 12:07:40 +00:00
14 lines
195 B
Rust
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() {}
|