Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
rust-2024
/
unsafe-extern-blocks
/
unsafe-on-extern-block-issue-126756.rs
blob: edab9850d796f6d2234a96b95b43c0a99cc262e3 [
file
] [
log
] [
blame
] [
edit
]
//@ run-rustfix
#![
allow
(
dead_code
)]
extern
"C"
{
unsafe
fn
foo
();
//~ ERROR items in unadorned `extern` blocks cannot have safety qualifiers
}
fn
main
()
{}