mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-14 23:22:30 +00:00
12 lines
253 B
Rust
12 lines
253 B
Rust
#![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() {}
|