1 error: writing a literal with an empty format string
2 --> $DIR/write_literal.rs:17:32
4 17 | write!(&mut v, "Hello {}", "world");
7 = note: `-D write-literal` implied by `-D warnings`
9 error: writing a literal with an empty format string
10 --> $DIR/write_literal.rs:18:44
12 18 | writeln!(&mut v, "Hello {} {}", world, "world");
15 error: writing a literal with an empty format string
16 --> $DIR/write_literal.rs:19:34
18 19 | writeln!(&mut v, "Hello {}", "world");
21 error: writing a literal with an empty format string
22 --> $DIR/write_literal.rs:20:38
24 20 | writeln!(&mut v, "10 / 4 is {}", 2.5);
27 error: writing a literal with an empty format string
28 --> $DIR/write_literal.rs:21:36
30 21 | writeln!(&mut v, "2 + 1 = {}", 3);
33 error: writing a literal with an empty format string
34 --> $DIR/write_literal.rs:22:39
36 22 | writeln!(&mut v, "2 + 1 = {:.4}", 3);
39 error: writing a literal with an empty format string
40 --> $DIR/write_literal.rs:23:40
42 23 | writeln!(&mut v, "2 + 1 = {:5.4}", 3);
45 error: writing a literal with an empty format string
46 --> $DIR/write_literal.rs:24:41
48 24 | writeln!(&mut v, "Debug test {:?}", "hello, world");
51 error: writing a literal with an empty format string
52 --> $DIR/write_literal.rs:29:33
54 29 | writeln!(&mut v, "{0} {1}", "hello", "world");
57 error: writing a literal with an empty format string
58 --> $DIR/write_literal.rs:29:42
60 29 | writeln!(&mut v, "{0} {1}", "hello", "world");
63 error: writing a literal with an empty format string
64 --> $DIR/write_literal.rs:30:33
66 30 | writeln!(&mut v, "{1} {0}", "hello", "world");
69 error: writing a literal with an empty format string
70 --> $DIR/write_literal.rs:30:42
72 30 | writeln!(&mut v, "{1} {0}", "hello", "world");
75 error: writing a literal with an empty format string
76 --> $DIR/write_literal.rs:33:43
78 33 | writeln!(&mut v, "{foo} {bar}", foo = "hello", bar = "world");
81 error: writing a literal with an empty format string
82 --> $DIR/write_literal.rs:33:58
84 33 | writeln!(&mut v, "{foo} {bar}", foo = "hello", bar = "world");
87 error: writing a literal with an empty format string
88 --> $DIR/write_literal.rs:34:43
90 34 | writeln!(&mut v, "{bar} {foo}", foo = "hello", bar = "world");
93 error: writing a literal with an empty format string
94 --> $DIR/write_literal.rs:34:58
96 34 | writeln!(&mut v, "{bar} {foo}", foo = "hello", bar = "world");
99 error: aborting due to 16 previous errors