Questions about rust macro

Hi,

I constructed the following macro and it could pass the compilation. But I'm wondering how to use this or whether it's legal in syntax.

macro_rules! foo {
   (aa$e:expr) => { println!(stringify!($e)); }
}

It is legal: Rust Playground

fn main() {
    foo!(aa 1 + 1);
}

oh, thx a lot