Sign in
rust
/
rust
/
08cd08fbef8c6663b052d8d9e4930d5696cbb8a7
/
.
/
tests
/
ui
/
match
/
struct-reference-patterns-12285.rs
blob: 246e230b0de74a56ed2d88a1e6e775927ed32c0b [
file
]
//! Regression test for https://github.com/rust-lang/rust/issues/12285
//@ run-pass
struct
S
;
fn
main
()
{
match
Some
(&
S
)
{
Some
(&
S
)
=>
{},
_x
=>
unreachable
!()
}
match
Some
(&
S
)
{
Some
(&
S
)
=>
{},
None
=>
unreachable
!()
}
}