Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
rfc-2005-default-binding-mode
/
issue-44912-or.rs
blob: aa013d4bf3528fbdc0262a9867a01af91953a14d [
file
] [
log
] [
blame
]
// FIXME(tschottdorf): This should compile. See #44912.
pub
fn
main
()
{
let
x
=
&
Some
((
3
,
3
));
let
_
:
&
i32
=
match
x
{
Some
((
x
,
3
))
|
&
Some
((
ref
x
,
5
))
=>
x
,
//~^ ERROR is bound in inconsistent ways
_
=>
&
5i32
,
};
}