mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-30 12:36:38 +00:00
Notes about tests: - tests/ui/rfcs/rfc-2294-if-let-guard/feature-gate.rs: some messages are now duplicated due to repeated parsing. - tests/ui/rfcs/rfc-2497-if-let-chains/disallowed-positions.rs: ditto. - `tests/ui/proc-macro/macro-rules-derive-cfg.rs`: the diff looks large but the only difference is the insertion of a single invisible-delimited group around a metavar. - `tests/ui/attributes/nonterminal-expansion.rs`: a slight span degradation, somehow related to the recent massive attr parsing rewrite (#135726). I couldn't work out exactly what is going wrong, but I don't think it's worth holding things up for a single slightly suboptimal error message.
23 lines
688 B
Plaintext
23 lines
688 B
Plaintext
error: macro expansion ignores `expr` metavariable and any tokens following
|
|
--> $DIR/trait-non-item-macros.rs:3:9
|
|
|
|
|
LL | $a
|
|
| ^^
|
|
...
|
|
LL | bah!(2);
|
|
| ------- caused by the macro expansion here
|
|
|
|
|
= note: the usage of `bah!` is likely invalid in trait item context
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/trait-non-item-macros.rs:12:33
|
|
|
|
|
LL | let _recovery_witness: () = 0;
|
|
| -- ^ expected `()`, found integer
|
|
| |
|
|
| expected due to this
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|