summaryrefslogtreecommitdiffstats
path: root/src/test/ui/test-attrs/test-cant-be-shadowed.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/test-attrs/test-cant-be-shadowed.rs')
-rw-r--r--src/test/ui/test-attrs/test-cant-be-shadowed.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/test-attrs/test-cant-be-shadowed.rs b/src/test/ui/test-attrs/test-cant-be-shadowed.rs
new file mode 100644
index 000000000..831372d45
--- /dev/null
+++ b/src/test/ui/test-attrs/test-cant-be-shadowed.rs
@@ -0,0 +1,13 @@
+// build-pass (FIXME(62277): could be check-pass?)
+// aux-build:test_macro.rs
+// compile-flags:--test
+
+#[macro_use] extern crate test_macro;
+
+#[test]
+fn foo(){}
+
+macro_rules! test { () => () }
+
+#[test]
+fn bar() {}