]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/print_literal.stderr
Rollup merge of #103178 - ferrocene:pa-coverage-reports-tests, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / tests / ui / print_literal.stderr
1 error: literal with an empty format string
2   --> $DIR/print_literal.rs:27:24
3    |
4 LL |     print!("Hello {}", "world");
5    |                        ^^^^^^^
6    |
7    = note: `-D clippy::print-literal` implied by `-D warnings`
8 help: try this
9    |
10 LL -     print!("Hello {}", "world");
11 LL +     print!("Hello world");
12    |
13
14 error: literal with an empty format string
15   --> $DIR/print_literal.rs:28:36
16    |
17 LL |     println!("Hello {} {}", world, "world");
18    |                                    ^^^^^^^
19    |
20 help: try this
21    |
22 LL -     println!("Hello {} {}", world, "world");
23 LL +     println!("Hello {} world", world);
24    |
25
26 error: literal with an empty format string
27   --> $DIR/print_literal.rs:29:26
28    |
29 LL |     println!("Hello {}", "world");
30    |                          ^^^^^^^
31    |
32 help: try this
33    |
34 LL -     println!("Hello {}", "world");
35 LL +     println!("Hello world");
36    |
37
38 error: literal with an empty format string
39   --> $DIR/print_literal.rs:30:26
40    |
41 LL |     println!("{} {:.4}", "a literal", 5);
42    |                          ^^^^^^^^^^^
43    |
44 help: try this
45    |
46 LL -     println!("{} {:.4}", "a literal", 5);
47 LL +     println!("a literal {:.4}", 5);
48    |
49
50 error: literal with an empty format string
51   --> $DIR/print_literal.rs:35:25
52    |
53 LL |     println!("{0} {1}", "hello", "world");
54    |                         ^^^^^^^
55    |
56 help: try this
57    |
58 LL -     println!("{0} {1}", "hello", "world");
59 LL +     println!("hello {1}", "world");
60    |
61
62 error: literal with an empty format string
63   --> $DIR/print_literal.rs:35:34
64    |
65 LL |     println!("{0} {1}", "hello", "world");
66    |                                  ^^^^^^^
67    |
68 help: try this
69    |
70 LL -     println!("{0} {1}", "hello", "world");
71 LL +     println!("{0} world", "hello");
72    |
73
74 error: literal with an empty format string
75   --> $DIR/print_literal.rs:36:34
76    |
77 LL |     println!("{1} {0}", "hello", "world");
78    |                                  ^^^^^^^
79    |
80 help: try this
81    |
82 LL -     println!("{1} {0}", "hello", "world");
83 LL +     println!("world {0}", "hello");
84    |
85
86 error: literal with an empty format string
87   --> $DIR/print_literal.rs:36:25
88    |
89 LL |     println!("{1} {0}", "hello", "world");
90    |                         ^^^^^^^
91    |
92 help: try this
93    |
94 LL -     println!("{1} {0}", "hello", "world");
95 LL +     println!("{1} hello", "world");
96    |
97
98 error: literal with an empty format string
99   --> $DIR/print_literal.rs:39:35
100    |
101 LL |     println!("{foo} {bar}", foo = "hello", bar = "world");
102    |                                   ^^^^^^^
103    |
104 help: try this
105    |
106 LL -     println!("{foo} {bar}", foo = "hello", bar = "world");
107 LL +     println!("hello {bar}", bar = "world");
108    |
109
110 error: literal with an empty format string
111   --> $DIR/print_literal.rs:39:50
112    |
113 LL |     println!("{foo} {bar}", foo = "hello", bar = "world");
114    |                                                  ^^^^^^^
115    |
116 help: try this
117    |
118 LL -     println!("{foo} {bar}", foo = "hello", bar = "world");
119 LL +     println!("{foo} world", foo = "hello");
120    |
121
122 error: literal with an empty format string
123   --> $DIR/print_literal.rs:40:50
124    |
125 LL |     println!("{bar} {foo}", foo = "hello", bar = "world");
126    |                                                  ^^^^^^^
127    |
128 help: try this
129    |
130 LL -     println!("{bar} {foo}", foo = "hello", bar = "world");
131 LL +     println!("world {foo}", foo = "hello");
132    |
133
134 error: literal with an empty format string
135   --> $DIR/print_literal.rs:40:35
136    |
137 LL |     println!("{bar} {foo}", foo = "hello", bar = "world");
138    |                                   ^^^^^^^
139    |
140 help: try this
141    |
142 LL -     println!("{bar} {foo}", foo = "hello", bar = "world");
143 LL +     println!("{bar} hello", bar = "world");
144    |
145
146 error: aborting due to 12 previous errors
147