mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
19 lines
315 B
Rust
19 lines
315 B
Rust
// Regression test for #122659
|
|
//@ build-pass
|
|
//@ compile-flags: -O --crate-type=lib
|
|
|
|
#![feature(core_intrinsics)]
|
|
#![feature(const_eval_select)]
|
|
|
|
use std::intrinsics::const_eval_select;
|
|
|
|
#[inline]
|
|
pub const fn f() {
|
|
const_eval_select((), g, g)
|
|
}
|
|
|
|
#[inline]
|
|
pub const fn g() {
|
|
const_eval_select((), f, f)
|
|
}
|