Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
union
/
union-const-pat.rs
blob: cb2248cc6d18924f30e0b426022095f23af4933d [
file
] [
log
] [
blame
]
union U
{
a
:
usize
,
b
:
usize
,
}
const
C
:
U
=
U
{
a
:
10
};
fn
main
()
{
match
C
{
C
=>
{}
//~ ERROR cannot use unions in constant patterns
//~| ERROR cannot use unions in constant patterns
_
=>
{}
}
}