]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/derive-in-eager-expansion-hang.stderr
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / macros / derive-in-eager-expansion-hang.stderr
1 error: format argument must be a string literal
2   --> $DIR/derive-in-eager-expansion-hang.rs:4:5
3    |
4 LL | /     {
5 LL | |         #[derive(Clone)]
6 LL | |         struct S;
7 LL | |
8 LL | |         ""
9 LL | |     }
10    | |_____^
11 ...
12 LL |       format_args!(hang!());
13    |                    ------- in this macro invocation
14    |
15 help: you might be missing a string literal to format with
16    |
17 LL |     format_args!("{}", hang!());
18    |                  ^^^^^
19
20 error: aborting due to previous error
21