Skip to content

Commit 6bb0b48

Browse files
authored
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.
1 parent 70da09e commit 6bb0b48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/macros/macros4.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
macro_rules! my_macro {
77
() => {
88
println!("Check out my macro!");
9-
};
9+
}
1010
($val:expr) => {
1111
println!("Look at this other macro: {}", $val);
12-
};
12+
}
1313
}
1414

1515
fn main() {

0 commit comments

Comments
 (0)