This repository has been archived on 2023-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
rustlings-exercises-completed/macros/macros1.rs
Carol (Nichols || Goulding) 08071aae39 Word wrap for the playground
2017-03-19 10:10:48 -04:00

64 lines
373 B
Rust

// Make me compile! Scroll down for hints :)
macro_rules! my_macro {
() => {
println!("Check out my macro!");
};
}
fn main() {
my_macro();
}
// When you call a macro, you need to add something special compared to a
// regular function call. If you're stuck, take a look at what's inside
// `my_macro`.