rust/tests/ui/macros/derive-in-eager-expansion-hang.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
232 B
Rust
Raw Normal View History

// Regression test for the issue #44692
macro_rules! hang { () => {
{ //~ ERROR format argument must be a string literal
#[derive(Clone)]
struct S;
""
}
}}
fn main() {
format_args!(hang!());
}