|
1 | 1 | error: literal with an empty format string |
2 | | - --> $DIR/write_literal.rs:27:79 |
3 | | - | |
4 | | -LL | writeln!(&mut v, "{} of {:b} people know binary, the other half doesn't", 1, 2); |
5 | | - | ^ |
6 | | - | |
7 | | - = note: `-D clippy::write-literal` implied by `-D warnings` |
8 | | - |
9 | | -error: literal with an empty format string |
10 | | - --> $DIR/write_literal.rs:28:32 |
| 2 | + --> $DIR/write_literal.rs:30:32 |
11 | 3 | | |
12 | 4 | LL | write!(&mut v, "Hello {}", "world"); |
13 | 5 | | ^^^^^^^ |
| 6 | + | |
| 7 | + = note: `-D clippy::write-literal` implied by `-D warnings` |
14 | 8 |
|
15 | 9 | error: literal with an empty format string |
16 | | - --> $DIR/write_literal.rs:29:44 |
| 10 | + --> $DIR/write_literal.rs:31:44 |
17 | 11 | | |
18 | 12 | LL | writeln!(&mut v, "Hello {} {}", world, "world"); |
19 | 13 | | ^^^^^^^ |
20 | 14 |
|
21 | 15 | error: literal with an empty format string |
22 | | - --> $DIR/write_literal.rs:30:34 |
| 16 | + --> $DIR/write_literal.rs:32:34 |
23 | 17 | | |
24 | 18 | LL | writeln!(&mut v, "Hello {}", "world"); |
25 | 19 | | ^^^^^^^ |
26 | 20 |
|
27 | | -error: literal with an empty format string |
28 | | - --> $DIR/write_literal.rs:31:38 |
29 | | - | |
30 | | -LL | writeln!(&mut v, "10 / 4 is {}", 2.5); |
31 | | - | ^^^ |
32 | | - |
33 | | -error: literal with an empty format string |
34 | | - --> $DIR/write_literal.rs:32:36 |
35 | | - | |
36 | | -LL | writeln!(&mut v, "2 + 1 = {}", 3); |
37 | | - | ^ |
38 | | - |
39 | 21 | error: literal with an empty format string |
40 | 22 | --> $DIR/write_literal.rs:37:33 |
41 | 23 | | |
@@ -84,5 +66,5 @@ error: literal with an empty format string |
84 | 66 | LL | writeln!(&mut v, "{bar} {foo}", foo = "hello", bar = "world"); |
85 | 67 | | ^^^^^^^ |
86 | 68 |
|
87 | | -error: aborting due to 14 previous errors |
| 69 | +error: aborting due to 11 previous errors |
88 | 70 |
|
0 commit comments