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