summaryrefslogtreecommitdiffstats
path: root/tests/ui/hygiene/format-args.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/hygiene/format-args.rs')
-rw-r--r--tests/ui/hygiene/format-args.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/hygiene/format-args.rs b/tests/ui/hygiene/format-args.rs
new file mode 100644
index 000000000..d74889b95
--- /dev/null
+++ b/tests/ui/hygiene/format-args.rs
@@ -0,0 +1,12 @@
+// check-pass
+
+#![allow(non_upper_case_globals)]
+#![feature(format_args_nl)]
+
+static arg0: () = ();
+
+fn main() {
+ static arg1: () = ();
+ format_args!("{} {:?}", 0, 1);
+ format_args_nl!("{} {:?}", 0, 1);
+}