diff options
| author | mo8it <mo8it@proton.me> | 2024-07-01 11:28:38 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-07-01 11:28:38 +0200 |
| commit | cf90364fd779255074eac9a7d90c53ad657936ba (patch) | |
| tree | 669c886315962f7d3f3d23c53b64fdb4281b91bd /solutions/21_macros | |
| parent | a13e3cd07f86e8668a326bae98568cced61f5015 (diff) | |
macros1 solution
Diffstat (limited to 'solutions/21_macros')
| -rw-r--r-- | solutions/21_macros/macros1.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/solutions/21_macros/macros1.rs b/solutions/21_macros/macros1.rs index 4e18198..1b86156 100644 --- a/solutions/21_macros/macros1.rs +++ b/solutions/21_macros/macros1.rs @@ -1 +1,10 @@ -// Solutions will be available before the stable release. Thank you for testing the beta version 🥰 +macro_rules! my_macro { + () => { + println!("Check out my macro!"); + }; +} + +fn main() { + my_macro!(); + // ^ +} |
