Notes about tests: - tests/ui/parser/macro/trait-object-macro-matcher.rs: the syntax error is duplicated, because it occurs now when parsing the decl macro input, and also when parsing the expanded decl macro. But this won't show up for normal users due to error de-duplication. - tests/ui/associated-consts/issue-93835.rs: similar, plus there are some additional errors about this very broken code. - The changes to metavariable descriptions in #132629 are now visible in error message for several tests.
17 lines
637 B
Plaintext
17 lines
637 B
Plaintext
error: expected identifier, found metavariable
|
|
--> $DIR/issue-37113.rs:4:16
|
|
|
|
|
LL | enum SomeEnum {
|
|
| -------- while parsing this enum
|
|
LL | $( $t, )*
|
|
| ^^ expected identifier, found metavariable
|
|
...
|
|
LL | test_macro!(String,);
|
|
| -------------------- in this macro invocation
|
|
|
|
|
= help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
|
|
= note: this error originates in the macro `test_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: aborting due to 1 previous error
|
|
|