about summary refs log tree commit diff
path: root/tests/ui/explicit_write.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/explicit_write.fixed')
-rw-r--r--tests/ui/explicit_write.fixed2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/explicit_write.fixed b/tests/ui/explicit_write.fixed
index 74d0e529028..35283725619 100644
--- a/tests/ui/explicit_write.fixed
+++ b/tests/ui/explicit_write.fixed
@@ -36,6 +36,8 @@ fn main() {
         eprintln!("with {} {}", 2, value);
         eprintln!("with {value}");
         eprintln!("macro arg {}", one!());
+        let width = 2;
+        eprintln!("{:w$}", value, w = width);
     }
     // these should not warn, different destination
     {