mirror of
https://github.com/rust-lang/rustlings
synced 2024-11-05 00:00:12 +00:00
9bdb0a12e4
Hints are now accessible using the CLI subcommand `rustlings hint <exercise name`. BREAKING CHANGE: This fundamentally changes the way people interact with exercises.
16 lines
281 B
Rust
16 lines
281 B
Rust
// macros3.rs
|
|
// Make me compile, without taking the macro out of the module!
|
|
// Execute `rustlings hint macros3` for hints :)
|
|
|
|
mod macros {
|
|
macro_rules! my_macro {
|
|
() => {
|
|
println!("Check out my macro!");
|
|
};
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
my_macro!();
|
|
}
|