mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 11:27:06 +00:00
This was attempted in [1] then reverted in [2] because of fallout. Recently, this was made an edition-dependent error in [3]. Make missing fragment specifiers an unconditional error again. [1]: https://github.com/rust-lang/rust/pull/75516 [2]: https://github.com/rust-lang/rust/pull/80210 [3]: https://github.com/rust-lang/rust/pull/128006
16 lines
497 B
Plaintext
16 lines
497 B
Plaintext
error: missing fragment specifier
|
|
--> $DIR/issue-39404.rs:4:6
|
|
|
|
|
LL | ($i) => {};
|
|
| ^^
|
|
|
|
|
= 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 | ($i:spec) => {};
|
|
| +++++
|
|
|
|
error: aborting due to 1 previous error
|
|
|