diff options
Diffstat (limited to 'exercises/macros/macros2.rs')
| -rw-r--r-- | exercises/macros/macros2.rs | 63 |
1 files changed, 1 insertions, 62 deletions
diff --git a/exercises/macros/macros2.rs b/exercises/macros/macros2.rs index bc2e56b..c4b4510 100644 --- a/exercises/macros/macros2.rs +++ b/exercises/macros/macros2.rs @@ -1,5 +1,5 @@ // macros2.rs -// Make me compile! Scroll down for hints :) +// Make me compile! Execute `rustlings hint macros2` for hints :) fn main() { my_macro!(); @@ -10,64 +10,3 @@ macro_rules! my_macro { println!("Check out my macro!"); }; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -// Macros don't quite play by the same rules as the rest of Rust, in terms of -// what's available where. - - - - - - - - -// Unlike other things in Rust, the order of "where you define a macro" versus -// "where you use it" actually matters. |
