blob: f8a8140cedc3373ce99fab93149e53db08b129cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![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() {}
|