Initial commit
This commit is contained in:
10
exercises/21_macros/macros2.rs
Normal file
10
exercises/21_macros/macros2.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
// TODO: Fix the compiler error by moving the whole definition of this macro.
|
||||
macro_rules! my_macro {
|
||||
() => {
|
||||
println!("Check out my macro!");
|
||||
};
|
||||
}
|
||||
|
||||
fn main() {
|
||||
my_macro!();
|
||||
}
|
||||
Reference in New Issue
Block a user