Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
rfc-2005-default-binding-mode
/
issue-44912-or.rs
blob: b4a0d8145c1d690b95b365e7880e64dc990794ab [
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 inconsistently
_
=>
&
5i32
,
};
}