summaryrefslogtreecommitdiffstats
path: root/src/test/ui/hygiene/intercrate.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/hygiene/intercrate.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/hygiene/intercrate.rs b/src/test/ui/hygiene/intercrate.rs
new file mode 100644
index 000000000..d9b5b789e
--- /dev/null
+++ b/src/test/ui/hygiene/intercrate.rs
@@ -0,0 +1,12 @@
+// ignore-pretty pretty-printing is unhygienic
+
+// aux-build:intercrate.rs
+
+#![feature(decl_macro)]
+
+extern crate intercrate;
+
+fn main() {
+ assert_eq!(intercrate::foo::m!(), 1);
+ //~^ ERROR type `fn() -> u32 {foo::bar::f}` is private
+}