mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 03:57:37 +00:00
48 lines
1.8 KiB
Plaintext
48 lines
1.8 KiB
Plaintext
error: missing fragment specifier
|
|
--> $DIR/macro-missing-fragment.rs:8:20
|
|
|
|
|
LL | ( $( any_token $field_rust_type )* ) => {};
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: fragment specifiers must be specified in the 2024 edition
|
|
= 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 | ( $( any_token $field_rust_type:spec )* ) => {};
|
|
| +++++
|
|
|
|
error: missing fragment specifier
|
|
--> $DIR/macro-missing-fragment.rs:18:7
|
|
|
|
|
LL | ( $name ) => {};
|
|
| ^^^^^
|
|
|
|
|
= note: fragment specifiers must be specified in the 2024 edition
|
|
= 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 | ( $name:spec ) => {};
|
|
| +++++
|
|
|
|
error: missing fragment specifier
|
|
--> $DIR/macro-missing-fragment.rs:25:7
|
|
|
|
|
LL | ( $name ) => {};
|
|
| ^^^^^
|
|
|
|
|
= note: fragment specifiers must be specified in the 2024 edition
|
|
= 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 | ( $name:spec ) => {};
|
|
| +++++
|
|
|
|
error: missing fragment specifier
|
|
--> $DIR/macro-missing-fragment.rs:8:20
|
|
|
|
|
LL | ( $( any_token $field_rust_type )* ) => {};
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|