Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
mir
/
issue-76803-branches-not-same.rs
blob: a6a57622005482df640ecc47c5e62f523300cce8 [
file
] [
log
] [
blame
]
// run-pass
#[
derive
(
Debug
,
Eq
,
PartialEq
)]
pub
enum
Type
{
A
,
B
,
}
pub
fn
encode
(
v
:
Type
)
->
Type
{
match
v
{
Type
::
A
=>
Type
::
B
,
_
=>
v
,
}
}
fn
main
()
{
assert_eq
!(
Type
::
B
,
encode
(
Type
::
A
));
}