26a1989041
where a function that calls a standard library function whose constness is unstable is considered as being able to be a const function
9 lines
275 B
Rust
9 lines
275 B
Rust
// This file provides a const function that is unstably const forever.
|
|
|
|
#![feature(staged_api)]
|
|
#![stable(feature = "1", since = "1.0.0")]
|
|
|
|
#[stable(feature = "1", since = "1.0.0")]
|
|
#[rustc_const_unstable(feature = "foo", issue = "none")]
|
|
pub const fn unstably_const_fn() {}
|