]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-deep_expansion.rs
Merge commit 'dc5423ad448877e33cca28db2f1445c9c4473c75' into clippyup
[rust.git] / src / test / 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 }