Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
parser
/
attribute
/
attr-pat-struct-rest.rs
blob: b2bfcf82df8d1fe3dd54279140725b6243943bbc [
file
] [
log
] [
blame
]
// #81282: Attributes are not allowed on struct field rest patterns (the ..).
struct
S
{}
fn
main
()
{
let
S
{
#[
cfg
(
any
())]
..
}
=
S
{};
//~^ ERROR expected identifier, found `..`
}