summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs')
-rw-r--r--tests/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs b/tests/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs
new file mode 100644
index 000000000..19d8fa87f
--- /dev/null
+++ b/tests/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() {}