2 // aux-build:test-macros.rs
3 // compile-flags: -Z span-debug
6 // Tests the pretty-printing behavior of inserting `NoDelim` groups
8 #![no_std] // Don't load unnecessary hygiene information from std
11 extern crate test_macros;
12 use test_macros::print_bang_consume;
14 macro_rules! expand_it {
15 (($val1:expr) ($val2:expr)) => { expand_it!($val1 + $val2) };
16 ($val:expr) => { print_bang_consume!("hi" $val (1 + 1)) };
20 expand_it!(1 + (25) + 1);
21 expand_it!(("hello".len()) ("world".len()));