2025-06-09 01:39:32 +05:00
|
|
|
//! Test nested macro expansion with concat! macros
|
|
|
|
|
|
2019-07-27 00:54:25 +03:00
|
|
|
//@ run-pass
|
|
|
|
|
|
2015-01-07 18:53:58 -08:00
|
|
|
static FOO : &'static str = concat!(concat!("hel", "lo"), "world");
|
2014-03-02 13:38:44 -08:00
|
|
|
|
|
|
|
|
pub fn main() {
|
2015-01-07 18:53:58 -08:00
|
|
|
assert_eq!(FOO, "helloworld");
|
2014-03-02 13:38:44 -08:00
|
|
|
}
|