1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

pub mod any;
pub mod fmt;
pub mod ops;
pub mod convert;
pub mod sync;

#[cfg(test)]
mod tests {
#[macro_export]
macro_rules! test_print {
    ($($trait:tt<$literal0:literal $(+ $param:literal)+>),*) => {
        {
            println!("{}", stringify!($($literal0 $(+ $param)+),*));
        }
    };
}

    #[test]
    fn macro_repeat() {
        test_print!(me<1 + 2 + 3>, to<1 + 2 + 3>);
    }
}