Open
Description
Code:
macro_rules! test {
($l:literal) => {};
}
fn main() {
test!{
"
"};
}
expected output:
macro_rules! test {
($l:literal) => {};
}
fn main() {
test!{
"
"
};
}
actual output:
macro_rules! test {
($l:literal) => {};
}
fn main() {
test! {
"
"};
}
Rustfmt added an extra indentation to the literal, including inside the string itself. This only occurs when the macro invocation is delimited by curly brackets, it works fine when square or parentheses are used.