Sign in
fuchsia
/
third_party
/
rust
/
bf84eb538fd16743240434b3e837b36c35719fee
/
.
/
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
_
=>
{}
}
}