2016-08-17 07:20:04 -07:00
|
|
|
error: requires at least a format string argument
|
|
|
|
--> $DIR/bad-format-args.rs:12:5
|
|
|
|
|
|
2018-07-19 14:15:43 +02:00
|
|
|
LL | format!(); //~ ERROR requires at least a format string argument
|
2016-08-17 07:20:04 -07:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2017-11-21 19:48:35 +00:00
|
|
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
2016-08-17 07:20:04 -07:00
|
|
|
|
|
|
|
error: expected token: `,`
|
2018-08-06 20:54:51 -07:00
|
|
|
--> $DIR/bad-format-args.rs:13:16
|
2016-08-17 07:20:04 -07:00
|
|
|
|
|
2018-07-19 14:15:43 +02:00
|
|
|
LL | format!("" 1); //~ ERROR expected token: `,`
|
2018-08-06 20:54:51 -07:00
|
|
|
| ^
|
2016-08-17 07:20:04 -07:00
|
|
|
|
|
|
|
error: expected token: `,`
|
2018-08-06 20:54:51 -07:00
|
|
|
--> $DIR/bad-format-args.rs:14:19
|
2016-08-17 07:20:04 -07:00
|
|
|
|
|
2018-07-19 14:15:43 +02:00
|
|
|
LL | format!("", 1 1); //~ ERROR expected token: `,`
|
2018-08-06 20:54:51 -07:00
|
|
|
| ^
|
2016-08-17 07:20:04 -07:00
|
|
|
|
2017-07-02 13:49:30 +03:00
|
|
|
error: aborting due to 3 previous errors
|
2016-08-17 07:20:04 -07:00
|
|
|
|