mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-06 10:03:30 +02:00
Clean up and unify exercises
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
// macros1.rs
|
||||
//
|
||||
// Execute `rustlings hint macros1` or use the `hint` watch subcommand for a
|
||||
// hint.
|
||||
|
||||
macro_rules! my_macro {
|
||||
() => {
|
||||
println!("Check out my macro!");
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
// macros2.rs
|
||||
//
|
||||
// Execute `rustlings hint macros2` or use the `hint` watch subcommand for a
|
||||
// hint.
|
||||
|
||||
fn main() {
|
||||
my_macro!();
|
||||
}
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
// macros3.rs
|
||||
//
|
||||
// Make me compile, without taking the macro out of the module!
|
||||
//
|
||||
// Execute `rustlings hint macros3` or use the `hint` watch subcommand for a
|
||||
// hint.
|
||||
|
||||
mod macros {
|
||||
macro_rules! my_macro {
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
// macros4.rs
|
||||
//
|
||||
// Execute `rustlings hint macros4` or use the `hint` watch subcommand for a
|
||||
// hint.
|
||||
|
||||
#[rustfmt::skip]
|
||||
macro_rules! my_macro {
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user