2018-08-08 14:28:26 +02:00
error: missing fragment specifier
2024-08-16 20:58:13 +08:00
--> $DIR/macro-match-nonterminal.rs:2:6
2018-08-08 14:28:26 +02:00
|
2020-03-17 09:37:59 +01:00
LL | ($a, $b) => {
2024-08-16 20:58:13 +08:00
| ^^
2022-04-08 16:04:37 +03:00
|
2024-07-30 23:04:23 -04:00
= note: fragment specifiers must be provided
= help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `lifetime`, `literal`, `path`, `meta`, `tt`, `item` and `vis`, along with `expr_2021` and `pat_param` for edition compatibility
help: try adding a specifier here
2022-04-08 16:04:37 +03:00
|
2024-07-30 23:04:23 -04:00
LL | ($a:spec, $b) => {
| +++++
2022-04-08 16:04:37 +03:00
2020-03-17 09:37:59 +01:00
error: missing fragment specifier
--> $DIR/macro-match-nonterminal.rs:2:10
|
LL | ($a, $b) => {
| ^^
2020-12-19 16:30:56 -05:00
|
2024-07-30 23:04:23 -04:00
= note: fragment specifiers must be provided
= help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `lifetime`, `literal`, `path`, `meta`, `tt`, `item` and `vis`, along with `expr_2021` and `pat_param` for edition compatibility
help: try adding a specifier here
|
LL | ($a, $b:spec) => {
| +++++
2018-08-08 14:28:26 +02:00
2025-06-17 22:15:38 -04:00
error: unexpected end of macro invocation
--> $DIR/macro-match-nonterminal.rs:10:5
|
LL | macro_rules! test {
| ----------------- when calling this macro
...
LL | test!()
| ^^^^^^^ missing tokens in macro arguments
|
note: while trying to match meta-variable `$a:tt`
2024-08-16 20:58:13 +08:00
--> $DIR/macro-match-nonterminal.rs:2:6
2024-07-23 18:56:29 -05:00
|
LL | ($a, $b) => {
2024-08-16 20:58:13 +08:00
| ^^
2024-07-23 18:56:29 -05:00
2024-07-30 23:04:23 -04:00
error: aborting due to 3 previous errors
2024-07-23 18:56:29 -05:00