Complete test4

This commit is contained in:
Paul Czeresko 2019-07-22 21:01:15 -04:00
parent d6a79f2399
commit 9521266b58

View file

@ -5,6 +5,13 @@
// Write a macro that passes the test! No hints this time, you can do it!
#[macro_export]
macro_rules! my_macro {
($x:expr) => {{
format!("Hello {}", $x)
}};
}
fn main() {
if my_macro!("world!") != "Hello world!" {
panic!("Oh no! Wrong output!");