summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs
blob: 19d8fa87f55365646623c3692e82e59b7e5762ed (plain)
1
2
3
4
5
6
#![allow(unused_macros)]

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

fn main() {}