Sign in
fuchsia
/
third_party
/
rust
/
13ef05e2be9862ea7b94d0b42e0b2d044b3c7f6b
/
.
/
tests
/
ui
/
missing
/
missing-fields-in-struct-pattern.rs
blob: 40304a674a63365b6e6321fd16128427b0ce0326 [
file
] [
log
] [
blame
]
struct
S
(
usize
,
usize
,
usize
,
usize
);
fn
main
()
{
if
let
S
{
a
,
b
,
c
,
d
}
=
S
(
1
,
2
,
3
,
4
)
{
//~^ ERROR tuple variant `S` written as struct variant
println
!(
"hi"
);
}
}