Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Why macro ignore double slash
macro_rules! demo {
($($tok:tt)*) => {
stringify!($($tok)*)
};
}
fn main() {
println!("{}", demo!{
hi
// hello
});
}
i just notice this in python inline macro.so i am interested in why
2 posts - 2 participants
🏷️ Rust_feed