rust/tests/ui/feature-gates/feature-gate-rustc-allow-co...

7 lines
145 B
Rust

#![allow(unused_macros)]
#[rustc_allow_const_fn_unstable()] //~ ERROR rustc_allow_const_fn_unstable side-steps
const fn foo() { }
fn main() {}