mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-05 01:33:30 +02:00
macros2 solution
This commit is contained in:
@@ -1 +1,10 @@
|
||||
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰
|
||||
// Moved the macro definition to be before its call.
|
||||
macro_rules! my_macro {
|
||||
() => {
|
||||
println!("Check out my macro!");
|
||||
};
|
||||
}
|
||||
|
||||
fn main() {
|
||||
my_macro!();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user