rustlings

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

macros2.rs (196B)


      1 fn main() {
      2     my_macro!();
      3 }
      4 
      5 // TODO: Fix the compiler error by moving the whole definition of this macro.
      6 macro_rules! my_macro {
      7     () => {
      8         println!("Check out my macro!");
      9     };
     10 }