mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 12:07:40 +00:00
9 lines
192 B
Rust
9 lines
192 B
Rust
![]() |
// #81282: Attributes are not allowed on struct field rest patterns (the ..).
|
||
|
|
||
|
struct S {}
|
||
|
|
||
|
fn main() {
|
||
|
let S { #[cfg(any())] .. } = S {};
|
||
|
//~^ ERROR expected identifier, found `..`
|
||
|
}
|