about summary refs log tree commit diff
path: root/tests/ui/macros/nested-macro-expansion.rs
blob: 3b94b1051c9b7cd398894ae47664f06e8f2c7768 (plain)
1
2
3
4
5
6
7
8
9
//! 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");
}