]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error: format argument must be a string literal |
0731742a | 2 | --> $DIR/issue-30143.rs:4:14 |
b7449926 XL |
3 | | |
4 | LL | println!(0); | |
5 | | ^ | |
e74abb32 | 6 | | |
b7449926 XL |
7 | help: you might be missing a string literal to format with |
8 | | | |
9 | LL | println!("{}", 0); | |
94222f64 | 10 | | +++++ |
b7449926 XL |
11 | |
12 | error: format argument must be a string literal | |
0731742a | 13 | --> $DIR/issue-30143.rs:6:15 |
b7449926 XL |
14 | | |
15 | LL | eprintln!('a'); | |
16 | | ^^^ | |
e74abb32 | 17 | | |
b7449926 XL |
18 | help: you might be missing a string literal to format with |
19 | | | |
20 | LL | eprintln!("{}", 'a'); | |
94222f64 | 21 | | +++++ |
b7449926 XL |
22 | |
23 | error: format argument must be a string literal | |
0731742a | 24 | --> $DIR/issue-30143.rs:9:17 |
b7449926 XL |
25 | | |
26 | LL | writeln!(s, true).unwrap(); | |
27 | | ^^^^ | |
e74abb32 | 28 | | |
b7449926 XL |
29 | help: you might be missing a string literal to format with |
30 | | | |
31 | LL | writeln!(s, "{}", true).unwrap(); | |
94222f64 | 32 | | +++++ |
b7449926 XL |
33 | |
34 | error: aborting due to 3 previous errors | |
35 |