Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
box
/
unit
/
unique-pat-3.rs
blob: 4816b5945f12a98cc9e8dbb076634a9672f91834 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
allow
(
dead_code
)]
#![
allow
(
non_camel_case_types
)]
enum
bar
{
u
(
Box
<
isize
>),
w
(
isize
),
}
pub
fn
main
()
{
let
v
=
match
bar
::
u
(
10.into
())
{
bar
::
u
(
a
)
=>
{
println
!(
"{}"
,
a
);
*
a
}
_
=>
{
66
}
};
assert_eq
!(
v
,
10
);
}