Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
rfcs
/
rfc-1445-restrict-constants-in-patterns
/
rfc1445
/
eq-allows-match.rs
blob: b297ec1b4e240f1a130b126139b640ab0123bb74 [
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
=>
{
}
_
=>
{
}
}
}