mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 03:57:37 +00:00

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
577 B
Plaintext
17 lines
577 B
Plaintext
error: expected identifier, found metavariable
|
|
--> $DIR/macro-interpolation.rs:21:19
|
|
|
|
|
LL | <$type as $trait>::$name
|
|
| ^^^^^^ expected identifier, found metavariable
|
|
...
|
|
LL | let _: qpath!(ty, <str as !>::Owned);
|
|
| -----------------------------
|
|
| |
|
|
| this macro call doesn't expand to a type
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `qpath` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: aborting due to 1 previous error
|
|
|