Initial commit
This commit is contained in:
13
solutions/21_macros/macros3.rs
Normal file
13
solutions/21_macros/macros3.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
// Added the attribute `macro_use` attribute.
|
||||
#[macro_use]
|
||||
mod macros {
|
||||
macro_rules! my_macro {
|
||||
() => {
|
||||
println!("Check out my macro!");
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
my_macro!();
|
||||
}
|
||||
Reference in New Issue
Block a user