mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
17 lines
252 B
Rust
17 lines
252 B
Rust
#![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);
|
|
}
|