fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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