summaryrefslogtreecommitdiffstats
path: root/src/test/ui/attributes/const-stability-on-macro.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/attributes/const-stability-on-macro.stderr')
-rw-r--r--src/test/ui/attributes/const-stability-on-macro.stderr20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/ui/attributes/const-stability-on-macro.stderr b/src/test/ui/attributes/const-stability-on-macro.stderr
new file mode 100644
index 000000000..c3da02c79
--- /dev/null
+++ b/src/test/ui/attributes/const-stability-on-macro.stderr
@@ -0,0 +1,20 @@
+error: macros cannot have const stability attributes
+ --> $DIR/const-stability-on-macro.rs:4:1
+ |
+LL | #[rustc_const_stable(feature = "foo", since = "0")]
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid const stability attribute
+LL |
+LL | macro_rules! foo {
+ | ---------------- const stability attribute affects this macro
+
+error: macros cannot have const stability attributes
+ --> $DIR/const-stability-on-macro.rs:10:1
+ |
+LL | #[rustc_const_unstable(feature = "bar", issue="none")]
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid const stability attribute
+LL |
+LL | macro_rules! bar {
+ | ---------------- const stability attribute affects this macro
+
+error: aborting due to 2 previous errors
+