Add a test for #2642
This commit is contained in:
parent
d88139893f
commit
c903119d8d
2 changed files with 25 additions and 0 deletions
|
@ -279,3 +279,14 @@ fn foo() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// #2642
|
||||
macro_rules! template {
|
||||
($name: expr) => {
|
||||
format_args!(r##"
|
||||
"http://example.com"
|
||||
|
||||
# test
|
||||
"##, $name)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -333,3 +333,17 @@ fn foo() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// #2642
|
||||
macro_rules! template {
|
||||
($name:expr) => {
|
||||
format_args!(
|
||||
r##"
|
||||
"http://example.com"
|
||||
|
||||
# test
|
||||
"##,
|
||||
$name
|
||||
)
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue