2022-08-23 00:07:26 +00:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
// See issue #100696.
|
|
|
|
//@ run-fail
|
|
|
|
//@ check-run-results
|
2022-09-21 10:24:16 -05:00
|
|
|
//@ exec-env:RUST_BACKTRACE=0
|
2022-08-23 00:07:26 +00:00
|
|
|
|
|
|
|
#[track_caller]
|
|
|
|
fn uhoh() {
|
|
|
|
panic!("Aaah!")
|
|
|
|
}
|
|
|
|
|
|
|
|
const fn c() {}
|
|
|
|
|
|
|
|
fn main() {
|
2024-03-02 12:53:28 +01:00
|
|
|
std::intrinsics::const_eval_select((), c, uhoh);
|
2022-08-23 00:07:26 +00:00
|
|
|
}
|