Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
box
/
unit
/
unique-pat.rs
blob: 395d06127d65326658f7259a5712d2b6b0c82ada [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
feature
(
box_patterns
)]
fn
simple
()
{
match
Box
::
new
(
true
)
{
box
true
=>
{
}
_
=>
{
panic
!();
}
}
}
pub
fn
main
()
{
simple
();
}