From 6bb0b48b100fe4af5bddbcf639e8843350b62555 Mon Sep 17 00:00:00 2001 From: Samuel Batista <47303296+bhgsbatista@users.noreply.github.com> Date: Wed, 26 Aug 2020 22:17:03 -0400 Subject: [PATCH] Make macros4 not compile by default Did you mean this? I'm new to rust and this test passed right away, so unsure what the intention was. --- exercises/macros/macros4.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/macros/macros4.rs b/exercises/macros/macros4.rs index 1b550f43..3a748078 100644 --- a/exercises/macros/macros4.rs +++ b/exercises/macros/macros4.rs @@ -6,10 +6,10 @@ macro_rules! my_macro { () => { println!("Check out my macro!"); - }; + } ($val:expr) => { println!("Look at this other macro: {}", $val); - }; + } } fn main() {