]> git.lizzy.rs Git - rust.git/blob - tests/ui/print_literal.stderr
Merge remote-tracking branch 'upstream/beta' into backport_remerge
[rust.git] / tests / ui / print_literal.stderr
1 error: literal with an empty format string
2   --> $DIR/print_literal.rs:25: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    |                   ^^^^^--
12
13 error: literal with an empty format string
14   --> $DIR/print_literal.rs:26:36
15    |
16 LL |     println!("Hello {} {}", world, "world");
17    |                                    ^^^^^^^
18    |
19 help: try this
20    |
21 LL |     println!("Hello {} world", world);
22    |                        ^^^^^       --
23
24 error: literal with an empty format string
25   --> $DIR/print_literal.rs:27:26
26    |
27 LL |     println!("Hello {}", "world");
28    |                          ^^^^^^^
29    |
30 help: try this
31    |
32 LL |     println!("Hello world");
33    |                     ^^^^^--
34
35 error: literal with an empty format string
36   --> $DIR/print_literal.rs:32:25
37    |
38 LL |     println!("{0} {1}", "hello", "world");
39    |                         ^^^^^^^
40    |
41 help: try this
42    |
43 LL |     println!("hello {1}", "world");
44    |               ^^^^^    --
45
46 error: literal with an empty format string
47   --> $DIR/print_literal.rs:32:34
48    |
49 LL |     println!("{0} {1}", "hello", "world");
50    |                                  ^^^^^^^
51    |
52 help: try this
53    |
54 LL |     println!("{0} world", "hello");
55    |                   ^^^^^         --
56
57 error: literal with an empty format string
58   --> $DIR/print_literal.rs:33:25
59    |
60 LL |     println!("{1} {0}", "hello", "world");
61    |                         ^^^^^^^
62    |
63 help: try this
64    |
65 LL |     println!("{1} hello", "world");
66    |                   ^^^^^--
67
68 error: literal with an empty format string
69   --> $DIR/print_literal.rs:33:34
70    |
71 LL |     println!("{1} {0}", "hello", "world");
72    |                                  ^^^^^^^
73    |
74 help: try this
75    |
76 LL |     println!("world {0}", "hello");
77    |               ^^^^^             --
78
79 error: literal with an empty format string
80   --> $DIR/print_literal.rs:36:29
81    |
82 LL |     println!("{foo} {bar}", foo = "hello", bar = "world");
83    |                             ^^^^^^^^^^^^^
84    |
85 help: try this
86    |
87 LL |     println!("hello {bar}", bar = "world");
88    |               ^^^^^      --
89
90 error: literal with an empty format string
91   --> $DIR/print_literal.rs:36:44
92    |
93 LL |     println!("{foo} {bar}", foo = "hello", bar = "world");
94    |                                            ^^^^^^^^^^^^^
95    |
96 help: try this
97    |
98 LL |     println!("{foo} world", foo = "hello");
99    |                     ^^^^^               --
100
101 error: literal with an empty format string
102   --> $DIR/print_literal.rs:37:29
103    |
104 LL |     println!("{bar} {foo}", foo = "hello", bar = "world");
105    |                             ^^^^^^^^^^^^^
106    |
107 help: try this
108    |
109 LL |     println!("{bar} hello", bar = "world");
110    |                     ^^^^^--
111
112 error: literal with an empty format string
113   --> $DIR/print_literal.rs:37:44
114    |
115 LL |     println!("{bar} {foo}", foo = "hello", bar = "world");
116    |                                            ^^^^^^^^^^^^^
117    |
118 help: try this
119    |
120 LL |     println!("world {foo}", foo = "hello");
121    |               ^^^^^                     --
122
123 error: aborting due to 11 previous errors
124