Sign in
fuchsia
/
third_party
/
rust
/
a7a6dedfe661a6d9d181afeb0fbaa894fcb7362b
/
.
/
src
/
test
/
ui
/
unique
/
unique-pat-3.rs
blob: e17b5a3ddb450996fc335267cdf220d800abf7cf [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
#![
allow
(
non_camel_case_types
)]
#![
feature
(
box_syntax
)]
enum
bar
{
u
(
Box
<
isize
>),
w
(
isize
),
}
pub
fn
main
()
{
assert
!(
match
bar
::
u
(
box
10
)
{
bar
::
u
(
a
)
=>
{
println
!(
"{}"
,
a
);
*
a
}
_
=>
{
66
}
}
==
10
);
}