mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-02 00:13:30 +02:00
14 lines
202 B
Rust
14 lines
202 B
Rust
// Added the `macro_use` attribute.
|
|
#[macro_use]
|
|
mod macros {
|
|
macro_rules! my_macro {
|
|
() => {
|
|
println!("Check out my macro!");
|
|
};
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
my_macro!();
|
|
}
|