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