Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
binding
/
expr-match-unique.rs
blob: a999541207d14f995ee86fe5de84e20f684b985f [
file
] [
log
] [
blame
]
// run-pass
#![
feature
(
box_syntax
)]
// Tests for match as expressions resulting in boxed types
fn
test_box
()
{
let
res
:
Box
<
_
>
=
match
true
{
true
=>
{
box
100
},
_
=>
panic
!()
};
assert_eq
!(*
res
,
100
);
}
pub
fn
main
()
{
test_box
();
}