2018-08-10 18:01:54 +00:00
|
|
|
error: format argument must be a string literal
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-30143.rs:4:14
|
2018-08-10 18:01:54 +00:00
|
|
|
|
|
|
|
|
LL | println!(0);
|
|
|
|
| ^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2018-08-10 18:01:54 +00:00
|
|
|
help: you might be missing a string literal to format with
|
|
|
|
|
|
|
|
|
LL | println!("{}", 0);
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++++
|
2018-08-10 18:01:54 +00:00
|
|
|
|
|
|
|
error: format argument must be a string literal
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-30143.rs:6:15
|
2018-08-10 18:01:54 +00:00
|
|
|
|
|
|
|
|
LL | eprintln!('a');
|
|
|
|
| ^^^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2018-08-10 18:01:54 +00:00
|
|
|
help: you might be missing a string literal to format with
|
|
|
|
|
|
|
|
|
LL | eprintln!("{}", 'a');
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++++
|
2018-08-10 18:01:54 +00:00
|
|
|
|
|
|
|
error: format argument must be a string literal
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-30143.rs:9:17
|
2018-08-10 18:01:54 +00:00
|
|
|
|
|
|
|
|
LL | writeln!(s, true).unwrap();
|
|
|
|
| ^^^^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2018-08-10 18:01:54 +00:00
|
|
|
help: you might be missing a string literal to format with
|
|
|
|
|
|
|
|
|
LL | writeln!(s, "{}", true).unwrap();
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++++
|
2018-08-10 18:01:54 +00:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|