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.fixed | |
| parent | 0dc24ca37640f748d0deac392cb784dd6359b96c (diff) | |
Merge commit '7248d06384c6a90de58c04c1f46be88821278d8b' into sync-from-clippy
Diffstat (limited to 'tests/ui/explicit_write.fixed')
| -rw-r--r-- | tests/ui/explicit_write.fixed | 2 |
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 { |
