]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/print_literal.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / tools / clippy / 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 LL + print!("Hello world");
12 |
13
14 error: literal with an empty format string
15 --> $DIR/print_literal.rs:26: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:27: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:32:25
40 |
41 LL | println!("{0} {1}", "hello", "world");
42 | ^^^^^^^
43 |
44 help: try this
45 |
46 LL - println!("{0} {1}", "hello", "world");
47 LL + println!("hello {1}", "world");
48 |
49
50 error: literal with an empty format string
51 --> $DIR/print_literal.rs:32:34
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!("{0} world", "hello");
60 |
61
62 error: literal with an empty format string
63 --> $DIR/print_literal.rs:33:25
64 |
65 LL | println!("{1} {0}", "hello", "world");
66 | ^^^^^^^
67 |
68 help: try this
69 |
70 LL - println!("{1} {0}", "hello", "world");
71 LL + println!("{1} hello", "world");
72 |
73
74 error: literal with an empty format string
75 --> $DIR/print_literal.rs:33: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:29
88 |
89 LL | println!("{foo} {bar}", foo = "hello", bar = "world");
90 | ^^^^^^^^^^^^^
91 |
92 help: try this
93 |
94 LL - println!("{foo} {bar}", foo = "hello", bar = "world");
95 LL + println!("hello {bar}", bar = "world");
96 |
97
98 error: literal with an empty format string
99 --> $DIR/print_literal.rs:36:44
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!("{foo} world", foo = "hello");
108 |
109
110 error: literal with an empty format string
111 --> $DIR/print_literal.rs:37:29
112 |
113 LL | println!("{bar} {foo}", foo = "hello", bar = "world");
114 | ^^^^^^^^^^^^^
115 |
116 help: try this
117 |
118 LL - println!("{bar} {foo}", foo = "hello", bar = "world");
119 LL + println!("{bar} hello", bar = "world");
120 |
121
122 error: literal with an empty format string
123 --> $DIR/print_literal.rs:37:44
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: aborting due to 11 previous errors
135