]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/derive-in-eager-expansion-hang.rs
Auto merge of #106976 - tmiasko:borrowck-lazy-dominators, r=cjgillot
[rust.git] / tests / 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 }