mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 04:04:06 +00:00
20 lines
353 B
Rust
20 lines
353 B
Rust
#![allow(incomplete_features)]
|
|
#![feature(explicit_tail_calls)]
|
|
|
|
pub const fn f() {
|
|
become g();
|
|
}
|
|
|
|
const fn g() {
|
|
panic!()
|
|
//~^ error: evaluation of constant value failed
|
|
//~| note: in this expansion of panic!
|
|
//~| note: inside `g`
|
|
//~| note: in this expansion of panic!
|
|
}
|
|
|
|
const _: () = f();
|
|
//~^ note: inside `_`
|
|
|
|
fn main() {}
|