]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-deep_expansion.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / macros / macro-deep_expansion.rs
1 // run-pass
2
3 macro_rules! foo2 {
4     () => {
5         "foo"
6     }
7 }
8
9 macro_rules! foo {
10     () => {
11         foo2!()
12     }
13 }
14
15 fn main() {
16     assert_eq!(concat!(foo!(), "bar"), "foobar")
17 }