I made a rust macro, that literally pastes some code to where i call it. I hardcoded some things into there, which it can't find unfortunaly.
That's how my code is structured:
macro_rules! foo {
println!("{}", number);
}
fn bar() {
let number: i32 = 10;
foo!(); //--> cannot find 'number', even if it is right above here
}