Why macro ignore double slash

⚓ Rust    📅 2025-08-07    👤 surdeus    👁️ 6      

surdeus

run

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

Read full topic

🏷️ Rust_feed