rust/tests/ui/codemap_tests/bad-format-args.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
704 B
Plaintext
Raw Normal View History

error: requires at least a format string argument
2018-12-25 09:56:47 -06:00
--> $DIR/bad-format-args.rs:2:5
|
2019-03-09 06:03:44 -06:00
LL | format!();
2021-10-14 13:28:28 -05:00
| ^^^^^^^^^
|
= note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
error: expected `,`, found `1`
2018-12-25 09:56:47 -06:00
--> $DIR/bad-format-args.rs:3:16
|
2019-03-09 06:03:44 -06:00
LL | format!("" 1);
| ^ expected `,`
error: expected one of `,`, `.`, `?`, or an operator, found `1`
2018-12-25 09:56:47 -06:00
--> $DIR/bad-format-args.rs:4:19
|
2019-03-09 06:03:44 -06:00
LL | format!("", 1 1);
| ^ expected one of `,`, `.`, `?`, or an operator
error: aborting due to 3 previous errors