summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/gate-do-not-const-check.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/gate-do-not-const-check.rs')
-rw-r--r--tests/ui/consts/gate-do-not-const-check.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/consts/gate-do-not-const-check.rs b/tests/ui/consts/gate-do-not-const-check.rs
new file mode 100644
index 000000000..be7e70dfa
--- /dev/null
+++ b/tests/ui/consts/gate-do-not-const-check.rs
@@ -0,0 +1,5 @@
+#[rustc_do_not_const_check]
+//~^ ERROR this is an internal attribute that will never be stable
+const fn foo() {}
+
+fn main() {}