rust/tests/ui/hygiene/eager-from-opaque.rs
2023-01-11 09:32:08 +00:00

21 lines
282 B
Rust

// Opaque macro can eagerly expand its input without breaking its resolution.
// Regression test for issue #63685.
// check-pass
macro_rules! foo {
() => {
"foo"
};
}
macro_rules! bar {
() => {
foo!()
};
}
fn main() {
format_args!(bar!());
}