about summary refs log tree commit diff
path: root/tests/ui/explicit-tail-calls/ctfe-tail-call-panic.rs
blob: 26fb7b16a55f49865d8932ffb29d7fe85d572dad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![expect(incomplete_features)]
#![feature(explicit_tail_calls)]

pub const fn f() {
    become g();
}

const fn g() {
    panic!() //~ NOTE inside `g`
    //~^ NOTE in this expansion of panic!
}

const _: () = f(); //~ NOTE failed inside this call
//~^ ERROR explicit panic

fn main() {}