mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
12 lines
252 B
Rust
12 lines
252 B
Rust
#![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() {}
|