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;
|
2024-03-05 10:24:30 -06:00
|
|
|
... |
|
2019-07-08 13:58:42 -05:00
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2019-08-19 15:35:25 -05:00
|
|
|
...
|
|
|
|
LL | format_args!(hang!());
|
|
|
|
| ------- in this macro invocation
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `hang` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-07-08 13:58:42 -05:00
|
|
|
help: you might be missing a string literal to format with
|
|
|
|
|
|
|
|
|
LL | format_args!("{}", hang!());
|
2021-06-21 21:07:19 -05:00
|
|
|
| +++++
|
2019-07-08 13:58:42 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2019-07-08 13:58:42 -05:00
|
|
|
|