rust/tests/ui/explicit-tail-calls/unsafeck.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
252 B
Rust
Raw Normal View History

#![allow(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() {}