summaryrefslogtreecommitdiff
path: root/solutions/21_macros/macros1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'solutions/21_macros/macros1.rs')
-rw-r--r--solutions/21_macros/macros1.rs11
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!();
+ // ^
+}