Sign in
fuchsia
/
third_party
/
rust
/
d782f09ae0b88a73a69e2fa3169222cdbc47d4ec
/
.
/
src
/
test
/
ui
/
binding
/
nullary-or-pattern.rs
blob: 7a3d9d60edaa837bd143a04e9f85a8313fe4380f [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
non_camel_case_types
)]
enum
blah
{
a
,
b
,
}
fn
or_alt
(
q
:
blah
)
->
isize
{
match
q
{
blah
::
a
|
blah
::
b
=>
{
42
}
}
}
pub
fn
main
()
{
assert_eq
!(
or_alt
(
blah
::
a
),
42
);
assert_eq
!(
or_alt
(
blah
::
b
),
42
);
}