summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/use-macro-self.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/use-macro-self.rs')
-rw-r--r--tests/ui/macros/use-macro-self.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/macros/use-macro-self.rs b/tests/ui/macros/use-macro-self.rs
new file mode 100644
index 000000000..06464ab0b
--- /dev/null
+++ b/tests/ui/macros/use-macro-self.rs
@@ -0,0 +1,12 @@
+// run-pass
+#![allow(unused_imports)]
+// aux-build:use-macro-self.rs
+
+#[macro_use]
+extern crate use_macro_self;
+
+use use_macro_self::foobarius::{self};
+
+fn main() {
+ let _: () = foobarius!(); // OK, the macro returns `()`
+}