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