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

10 lines
171 B
Rust

//@ run-pass
fn main() {
println!("{}", {
macro_rules! foo {
($name:expr) => { concat!("hello ", $name) }
}
foo!("rust")
});
}