rust/tests/ui/macros/nested-macro-expansion.rs
2025-06-11 17:49:03 +05:00

10 lines
189 B
Rust

//! Test nested macro expansion with concat! macros
//@ run-pass
static FOO : &'static str = concat!(concat!("hel", "lo"), "world");
pub fn main() {
assert_eq!(FOO, "helloworld");
}