os-rust/src/test/ui/fmt/ifmt-bad-format-args.stderr

22 lines
584 B
Text
Raw Normal View History

2018-08-08 14:28:26 +02:00
error: requires at least a format string argument
2018-12-25 08:56:47 -07:00
--> $DIR/ifmt-bad-format-args.rs:2:5
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | format_args!();
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 14:28:26 +02:00
error: format argument must be a string literal
2018-12-25 08:56:47 -07:00
--> $DIR/ifmt-bad-format-args.rs:3:18
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | format_args!(|| {});
2018-08-08 14:28:26 +02:00
| ^^^^^
|
2018-08-08 14:28:26 +02:00
help: you might be missing a string literal to format with
|
2019-03-09 15:03:44 +03:00
LL | format_args!("{}", || {});
2018-08-08 14:28:26 +02:00
| ^^^^^
error: aborting due to 2 previous errors