]> git.lizzy.rs Git - rust.git/blob - tests/ui/write_literal.stderr
Merge pull request #2984 from flip1995/single_char_pattern
[rust.git] / tests / ui / write_literal.stderr
1 error: literal with an empty format string
2   --> $DIR/write_literal.rs:27:79
3    |
4 27 |     writeln!(&mut v, "{} of {:b} people know binary, the other half doesn't", 1, 2);
5    |                                                                               ^
6    |
7    = note: `-D write-literal` implied by `-D warnings`
8
9 error: literal with an empty format string
10   --> $DIR/write_literal.rs:28:32
11    |
12 28 |     write!(&mut v, "Hello {}", "world");
13    |                                ^^^^^^^
14
15 error: literal with an empty format string
16   --> $DIR/write_literal.rs:29:44
17    |
18 29 |     writeln!(&mut v, "Hello {} {}", world, "world");
19    |                                            ^^^^^^^
20
21 error: literal with an empty format string
22   --> $DIR/write_literal.rs:30:34
23    |
24 30 |     writeln!(&mut v, "Hello {}", "world");
25    |                                  ^^^^^^^
26
27 error: literal with an empty format string
28   --> $DIR/write_literal.rs:31:38
29    |
30 31 |     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 32 |     writeln!(&mut v, "2 + 1 = {}", 3);
37    |                                    ^
38
39 error: literal with an empty format string
40   --> $DIR/write_literal.rs:37:33
41    |
42 37 |     writeln!(&mut v, "{0} {1}", "hello", "world");
43    |                                 ^^^^^^^
44
45 error: literal with an empty format string
46   --> $DIR/write_literal.rs:37:42
47    |
48 37 |     writeln!(&mut v, "{0} {1}", "hello", "world");
49    |                                          ^^^^^^^
50
51 error: literal with an empty format string
52   --> $DIR/write_literal.rs:38:33
53    |
54 38 |     writeln!(&mut v, "{1} {0}", "hello", "world");
55    |                                 ^^^^^^^
56
57 error: literal with an empty format string
58   --> $DIR/write_literal.rs:38:42
59    |
60 38 |     writeln!(&mut v, "{1} {0}", "hello", "world");
61    |                                          ^^^^^^^
62
63 error: literal with an empty format string
64   --> $DIR/write_literal.rs:41:41
65    |
66 41 |     writeln!(&mut v, "{foo} {bar}", foo="hello", bar="world");
67    |                                         ^^^^^^^
68
69 error: literal with an empty format string
70   --> $DIR/write_literal.rs:41:54
71    |
72 41 |     writeln!(&mut v, "{foo} {bar}", foo="hello", bar="world");
73    |                                                      ^^^^^^^
74
75 error: literal with an empty format string
76   --> $DIR/write_literal.rs:42:41
77    |
78 42 |     writeln!(&mut v, "{bar} {foo}", foo="hello", bar="world");
79    |                                         ^^^^^^^
80
81 error: literal with an empty format string
82   --> $DIR/write_literal.rs:42:54
83    |
84 42 |     writeln!(&mut v, "{bar} {foo}", foo="hello", bar="world");
85    |                                                      ^^^^^^^
86
87 error: aborting due to 14 previous errors
88