]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/derive-in-eager-expansion-hang.rs
Auto merge of #93718 - thomcc:used-macho, r=pnkfelix
[rust.git] / src / test / ui / macros / derive-in-eager-expansion-hang.rs
1 // Regression test for the issue #44692
2
3 macro_rules! hang { () => {
4     { //~ ERROR format argument must be a string literal
5         #[derive(Clone)]
6         struct S;
7
8         ""
9     }
10 }}
11
12 fn main() {
13     format_args!(hang!());
14 }