about summary refs log tree commit diff
path: root/tests/ui/macros/format-foreign-dollar-without-spec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/format-foreign-dollar-without-spec.rs')
-rw-r--r--tests/ui/macros/format-foreign-dollar-without-spec.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/macros/format-foreign-dollar-without-spec.rs b/tests/ui/macros/format-foreign-dollar-without-spec.rs
new file mode 100644
index 00000000000..c57c1382c8d
--- /dev/null
+++ b/tests/ui/macros/format-foreign-dollar-without-spec.rs
@@ -0,0 +1,5 @@
+// https://github.com/rust-lang/rust/issues/137580
+fn main() {
+    println!("%65536$", 1);
+    //~^ ERROR never used
+}