From 4d015293d1cb7ebdd0972e620c3e0f1763ad2ec8 Mon Sep 17 00:00:00 2001 From: David Koloski Date: Wed, 21 Sep 2022 13:02:37 -0400 Subject: Merge commit '7248d06384c6a90de58c04c1f46be88821278d8b' into sync-from-clippy --- tests/ui/explicit_write.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/ui/explicit_write.rs') 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 { -- cgit 1.4.1-3-g733a5