diff options
| author | David Koloski <dkoloski@google.com> | 2022-09-21 13:02:37 -0400 |
|---|---|---|
| committer | David Koloski <dkoloski@google.com> | 2022-09-21 13:13:27 -0400 |
| commit | 4d015293d1cb7ebdd0972e620c3e0f1763ad2ec8 (patch) | |
| tree | e7ff35c233cbd27cdba9e66a233797c5ab2f0cd7 /tests/ui/explicit_write.rs | |
| parent | 0dc24ca37640f748d0deac392cb784dd6359b96c (diff) | |
Merge commit '7248d06384c6a90de58c04c1f46be88821278d8b' into sync-from-clippy
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 { |
