Sign in
rust
/
rust
/
8a2c6ea4097f8bd2f282af2c491ff58622d12bbe
/
.
/
tests
/
ui
/
pattern
/
pattern-bad-ref-box-order.fixed
blob: 96b91bca63b1592f4dd3dc6214b78da414d5cd43 [
file
]
//@ run-rustfix
#![feature(box_patterns)]
#![allow(dead_code)]
fn foo
(
f
:
Option
<
Box
<i32>
>)
{
match f
{
Some
(
box
ref
_i
)
=>
{},
//~^ ERROR switch the order of `ref` and `box`
None
=>
{}
}
}
fn main
()
{
}