Files
rust/tests/ui/parser/macro
Esteban Küber 0ad2a3b3c2 Detect when a macro without exclamation mark uses square brackets
```
error: expected one of `.`, `?`, `]`, or an operator, found `,`
  --> $DIR/do-not-suggest-semicolon-between-macro-without-exclamation-mark-and-array.rs:2:19
   |
LL |     let _x = vec[1, 2, 3];
   |                   ^ expected one of `.`, `?`, `]`, or an operator
   |
help: you might have meant to call a macro
   |
LL |     let _x = vec![1, 2, 3];
   |                 +
```
2026-07-27 07:52:45 +00:00
..
2025-12-09 01:16:05 +00:00
2025-12-09 01:16:05 +00:00