diff options
Diffstat (limited to 'tests/ui/explicit_write.rs')
| -rw-r--r-- | tests/ui/explicit_write.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/explicit_write.rs b/tests/ui/explicit_write.rs index e7a698d3e01..be864a55b66 100644 --- a/tests/ui/explicit_write.rs +++ b/tests/ui/explicit_write.rs @@ -36,6 +36,8 @@ fn main() { writeln!(std::io::stderr(), "with {} {}", 2, value).unwrap(); writeln!(std::io::stderr(), "with {value}").unwrap(); writeln!(std::io::stderr(), "macro arg {}", one!()).unwrap(); + let width = 2; + writeln!(std::io::stderr(), "{:w$}", value, w = width).unwrap(); } // these should not warn, different destination { |
