2024-02-16 20:02:50 +00:00
|
|
|
//@ run-rustfix
|
2023-11-27 18:28:51 +09:00
|
|
|
|
|
|
|
#![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() { }
|