1
0
Fork 0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-01-16 00:00:02 +03:00
rustlings/exercises/21_macros/macros2.rs

10 lines
118 B
Rust
Raw Normal View History

2017-03-17 17:30:29 +03:00
fn main() {
my_macro!();
}
macro_rules! my_macro {
() => {
println!("Check out my macro!");
};
}