blob: e0a4f3878d8bb45a2c64963b5f540ceb12dd44b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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 | | }
| |_____^
...
LL | format_args!(hang!());
| ------- in this macro invocation
|
= note: this error originates in the macro `hang` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a string literal to format with
|
LL | format_args!("{}", hang!());
| +++++
error: aborting due to previous error
|