diff options
author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-03-03 20:37:51 +0000 |
---|---|---|
committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-03-10 16:59:26 +0000 |
commit | 3dee4630ba1fe9de0aa03e920dfe993a6d357945 (patch) | |
tree | 9cfc6e9c3ac1907d25851f46670aad77e9b2046f /tests/ui/macros | |
parent | d5833423a02e2373c5e3cceb238fb19192cd82f8 (diff) | |
download | rust-3dee4630ba1fe9de0aa03e920dfe993a6d357945.tar.gz |
Add note when matching token with nonterminal
The current error message is _really_ confusing.
Diffstat (limited to 'tests/ui/macros')
-rw-r--r-- | tests/ui/macros/nonterminal-matching.stderr | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/macros/nonterminal-matching.stderr b/tests/ui/macros/nonterminal-matching.stderr index 5bbd5439098..762ecc3207f 100644 --- a/tests/ui/macros/nonterminal-matching.stderr +++ b/tests/ui/macros/nonterminal-matching.stderr @@ -18,6 +18,7 @@ LL | macro n(a $nt_item b) { ... LL | complex_nonterminal!(enum E {}); | ------------------------------- in this macro invocation + = note: captured metavariables except for `$tt`, `$ident` and `$lifetime` cannot be compared to other tokens = note: this error originates in the macro `complex_nonterminal` (in Nightly builds, run with -Z macro-backtrace for more info) error: aborting due to previous error |