rust/tests/ui/macros/macro-nested_definition_issue-31946.rs
2023-01-11 09:32:08 +00:00

10 lines
170 B
Rust

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