mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-08 04:56:58 +00:00
tests: add the _ as expr test for cargo fix
Co-authored-by: Eric Holk <eric@theincredibleholk.org> Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is contained in:
parent
276fa19c0a
commit
6b731c2e7d
@ -1,5 +1,5 @@
|
||||
error: no rules expected the token `_`
|
||||
--> $DIR/expr_2024_underscore_expr.rs:23:12
|
||||
--> $DIR/expr_2024_underscore_expr.rs:22:12
|
||||
|
|
||||
LL | macro_rules! m2021 {
|
||||
| ------------------ when calling this macro
|
||||
@ -8,7 +8,7 @@ LL | m2021!(_);
|
||||
| ^ no rules expected this token in macro call
|
||||
|
|
||||
note: while trying to match meta-variable `$e:expr_2021`
|
||||
--> $DIR/expr_2024_underscore_expr.rs:11:6
|
||||
--> $DIR/expr_2024_underscore_expr.rs:10:6
|
||||
|
|
||||
LL | ($e:expr_2021) => {
|
||||
| ^^^^^^^^^^^^
|
||||
|
Loading…
Reference in New Issue
Block a user