We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5446e73 commit 9b11be7Copy full SHA for 9b11be7
tests/ui/write_literal.rs
@@ -11,7 +11,7 @@ fn main() {
11
writeln!(&mut v, "Hello");
12
let world = "world";
13
writeln!(&mut v, "Hello {}", world);
14
- writeln!(&mut v, "Hello {world}", world);
+ writeln!(&mut v, "Hello {world}", world=world);
15
writeln!(&mut v, "3 in hex is {:X}", 3);
16
writeln!(&mut v, "2 + 1 = {:.4}", 3);
17
writeln!(&mut v, "2 + 1 = {:5.4}", 3);
0 commit comments