Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
pattern
/
pattern-bad-ref-box-order.rs
blob: 29bf95d48b085f170059ad58f354a45d665d1746 [
file
] [
log
] [
blame
] [
edit
]
//@ run-rustfix
#![
feature
(
box_patterns
)]
#![
allow
(
dead_code
)]
fn
foo
(
f
:
Option
<
Box
<
i32
>>)
{
match
f
{
Some
(
ref
box _i
)
=>
{},
//~^ ERROR switch the order of `ref` and `box`
None
=>
{}
}
}
fn
main
()
{
}