lang_extension/lib.rs
1pub mod any;
2pub mod convert;
3pub mod fmt;
4pub mod ops;
5pub mod slice;
6pub mod sync;
7
8#[cfg(test)]
9mod tests {
10 #[macro_export]
11 macro_rules! test_print {
12 ($($trait:tt<$literal0:literal $(+ $param:literal)+>),*) => {
13 {
14 println!("{}", stringify!($($literal0 $(+ $param)+),*));
15 }
16 };
17}
18
19 #[test]
20 fn macro_repeat() {
21 test_print!(me<1 + 2 + 3>, to<1 + 2 + 3>);
22 }
23}