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