mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 04:57:35 +00:00

This removes support for attributes on struct field rest patterns (the `..`) from the parser. Previously they were being parsed but dropped from the AST, so didn't work and were deleted by rustfmt.
11 lines
294 B
Plaintext
11 lines
294 B
Plaintext
error: expected identifier, found `..`
|
|
--> $DIR/attr-pat-struct-rest.rs:6:27
|
|
|
|
|
LL | let S { #[cfg(any())] .. } = S {};
|
|
| - ^^ expected identifier
|
|
| |
|
|
| while parsing the fields for this pattern
|
|
|
|
error: aborting due to 1 previous error
|
|
|