Add a test for #2642

This commit is contained in:
topecongiro 2018-08-31 10:37:22 +09:00
parent d88139893f
commit c903119d8d
2 changed files with 25 additions and 0 deletions

View file

@ -279,3 +279,14 @@ fn foo() {
}
}
}
// #2642
macro_rules! template {
($name: expr) => {
format_args!(r##"
"http://example.com"
# test
"##, $name)
}
}

View file

@ -333,3 +333,17 @@ fn foo() {
}
}
}
// #2642
macro_rules! template {
($name:expr) => {
format_args!(
r##"
"http://example.com"
# test
"##,
$name
)
};
}