]> git.proxmox.com Git - rustc.git/blob - src/test/ui/macros/derive-in-eager-expansion-hang.rs
New upstream version 1.67.1+dfsg1
[rustc.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 }