2019-07-08 13:58:42 -05:00
|
|
|
error: format argument must be a string literal
|
|
|
|
--> $DIR/derive-in-eager-expansion-hang.rs:4:5
|
|
|
|
|
|
|
|
|
LL | / {
|
|
|
|
LL | | #[derive(Clone)]
|
|
|
|
LL | | struct S;
|
|
|
|
LL | |
|
|
|
|
LL | | ""
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2019-08-19 15:35:25 -05:00
|
|
|
...
|
|
|
|
LL | format_args!(hang!());
|
|
|
|
| ------- in this macro invocation
|
2019-07-08 13:58:42 -05:00
|
|
|
help: you might be missing a string literal to format with
|
|
|
|
|
|
|
|
|
LL | format_args!("{}", hang!());
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|