1 2 3 4 5 6
#![crate_type = "lib"] #[macro_export] macro_rules! mywrite { ($dst:expr, $($arg:tt)*) => ($dst.write_fmt(format_args!($($arg)*))) }