rustlings

solving rustlings ft. dracuxan
git clone [email protected]:dracuxan/rustlings.git
Log | Files | Refs

macros3.rs (244B)


      1 // TODO: Fix the compiler error without taking the macro definition out of this
      2 // module.
      3 mod macros {
      4     macro_rules! my_macro {
      5         () => {
      6             println!("Check out my macro!");
      7         };
      8     }
      9 }
     10 
     11 fn main() {
     12     my_macro!();
     13 }