about summary refs log tree commit diff
path: root/tests/ui/intrinsics/const-eval-select-backtrace.rs
blob: ea4374f5d328eeeedfb08c750a000c1c45cb7b76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![feature(core_intrinsics)]
// See issue #100696.
//@ run-fail
//@ check-run-results
//@ exec-env:RUST_BACKTRACE=0

#[track_caller]
fn uhoh() {
    panic!("Aaah!")
}

const fn c() {}

fn main() {
    std::intrinsics::const_eval_select((), c, uhoh);
}