mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00

also adjust the wording a little so that we don't say "the error occurred here" for two different spans
17 lines
289 B
Rust
17 lines
289 B
Rust
#![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() {}
|