Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
rfcs
/
rfc1445
/
eq-allows-match.rs
blob: 405a69c94bf013c63428f148ff922038eeab244b [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
#[
derive
(
PartialEq
,
Eq
)]
struct
Foo
{
x
:
u32
}
const
FOO
:
Foo
=
Foo
{
x
:
0
};
fn
main
()
{
let
y
=
Foo
{
x
:
1
};
match
y
{
FOO
=>
{
}
_
=>
{
}
}
}