We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ec0750 commit 8ffe414Copy full SHA for 8ffe414
src/macros.rs
@@ -274,6 +274,9 @@ pub fn rewrite_macro_inner(
274
DelimToken::Paren if position == MacroPosition::Item => {
275
Some(format!("{}();", macro_name))
276
}
277
+ DelimToken::Bracket if position == MacroPosition::Item => {
278
+ Some(format!("{}[];", macro_name))
279
+ }
280
DelimToken::Paren => Some(format!("{}()", macro_name)),
281
DelimToken::Bracket => Some(format!("{}[]", macro_name)),
282
DelimToken::Brace => Some(format!("{} {{}}", macro_name)),
tests/target/issue-3499.rs
@@ -0,0 +1 @@
1
+test![];
0 commit comments