]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-rustc-allow-const-fn-unstable.rs
1 #![allow(unused_macros)]
2
3 #[rustc_allow_const_fn_unstable()] //~ ERROR rustc_allow_const_fn_unstable side-steps
4 const fn foo() { }
5
6 fn main() {}