about summary refs log tree commit diff
path: root/tests/ui/stability-attribute/stability-attribute-sanity-3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/stability-attribute/stability-attribute-sanity-3.rs')
-rw-r--r--tests/ui/stability-attribute/stability-attribute-sanity-3.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/stability-attribute/stability-attribute-sanity-3.rs b/tests/ui/stability-attribute/stability-attribute-sanity-3.rs
new file mode 100644
index 00000000000..13ef3d3f53d
--- /dev/null
+++ b/tests/ui/stability-attribute/stability-attribute-sanity-3.rs
@@ -0,0 +1,12 @@
+// More checks that stability attributes are used correctly
+
+#![feature(staged_api)]
+
+#![stable(feature = "stable_test_feature", since = "1.0.0")]
+
+#[macro_export]
+macro_rules! mac { //~ ERROR macro has missing stability attribute
+    () => ()
+}
+
+fn main() { }