rust/tests/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs
2023-01-11 09:32:08 +00:00

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() {}