rust/tests/ui/macros/macro-deep_expansion.rs
2024-02-16 20:02:50 +00:00

18 lines
188 B
Rust

//@ run-pass
macro_rules! foo2 {
() => {
"foo"
}
}
macro_rules! foo {
() => {
foo2!()
}
}
fn main() {
assert_eq!(concat!(foo!(), "bar"), "foobar")
}