Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
parser
/
no-const-fn-in-extern-block.rs
blob: 0f1e44ced10e33aed7fef7da15a77adf08c24fd4 [
file
] [
log
] [
blame
]
extern
"C"
{
const
fn
foo
();
//~^ ERROR functions in `extern` blocks cannot
const
unsafe
fn
bar
();
//~^ ERROR functions in `extern` blocks cannot
//~| ERROR items in `extern` blocks without an `unsafe` qualifier cannot
}
fn
main
()
{}