We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For more information, see rust-lang/rust#83527.
#![feature(macro_metavar_expr)] macro_rules! mac { ( $($foo:ident)* ) => { 0 + ${count(foo)} }; } fn main() { let n = mac!(a b c); assert_eq!(n, 3); }
The text was updated successfully, but these errors were encountered:
I guess at least dollar-dollar will be easy to implement
macro_rules! foo { () => { macro_rules! bar { ( $$( $$any:tt )* ) => { $$( $$any )* }; } }; } fn main() { foo!(); }
Sorry, something went wrong.
Closing in favor of #11952
Ah, I completely forgot about this issue already existing sorry
No branches or pull requests
For more information, see rust-lang/rust#83527.
The text was updated successfully, but these errors were encountered: