diff options
Diffstat (limited to 'src/test/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs')
-rw-r--r-- | src/test/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs b/src/test/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs new file mode 100644 index 000000000..19d8fa87f --- /dev/null +++ b/src/test/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs @@ -0,0 +1,6 @@ +#![allow(unused_macros)] + +#[rustc_allow_const_fn_unstable()] //~ ERROR rustc_allow_const_fn_unstable side-steps +const fn foo() { } + +fn main() {} |