summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/auxiliary/issue-19163.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/auxiliary/issue-19163.rs')
-rw-r--r--tests/ui/macros/auxiliary/issue-19163.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/macros/auxiliary/issue-19163.rs b/tests/ui/macros/auxiliary/issue-19163.rs
new file mode 100644
index 000000000..0c0d9e43c
--- /dev/null
+++ b/tests/ui/macros/auxiliary/issue-19163.rs
@@ -0,0 +1,6 @@
+#![crate_type = "lib"]
+
+#[macro_export]
+macro_rules! mywrite {
+ ($dst:expr, $($arg:tt)*) => ($dst.write_fmt(format_args!($($arg)*)))
+}