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