summaryrefslogtreecommitdiffstats
path: root/src/test/ui/privacy/decl-macro.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/privacy/decl-macro.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/privacy/decl-macro.rs b/src/test/ui/privacy/decl-macro.rs
new file mode 100644
index 000000000..1eb49bd53
--- /dev/null
+++ b/src/test/ui/privacy/decl-macro.rs
@@ -0,0 +1,9 @@
+#![feature(decl_macro)]
+
+mod m {
+ macro mac() {}
+}
+
+fn main() {
+ m::mac!(); //~ ERROR macro `mac` is private
+}