You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
macro_rules! test {($l:literal) => {};}fnmain(){test!{""};}
expected output:
macro_rules! test {($l:literal) => {};}fnmain(){test!{""};}
actual output:
macro_rules! test {($l:literal) => {};}fnmain(){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.