Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
explicit-tail-calls
/
unsafeck.rs
blob: f8a8140cedc3373ce99fab93149e53db08b129cd [
file
] [
log
] [
blame
]
#![
expect
(
incomplete_features
)]
#![
feature
(
explicit_tail_calls
)]
const
fn
f
()
{
become dangerous
();
//~^ error: call to unsafe function `dangerous` is unsafe and requires unsafe function or block
}
const
unsafe
fn
dangerous
()
{}
fn
main
()
{}