Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
binding
/
expr-match-unique.rs
blob: eec9e1f8b4ae1c574fe30a39c5a8c3662af92484 [
file
] [
log
] [
blame
]
// run-pass
// Tests for match as expressions resulting in boxed types
fn
test_box
()
{
let
res
:
Box
<
_
>
=
match
true
{
true
=>
{
Box
::
new
(
100
)
},
_
=>
panic
!()
};
assert_eq
!(*
res
,
100
);
}
pub
fn
main
()
{
test_box
();
}