//@ run-rustfix #![feature(box_patterns)] #![allow(dead_code)] fn foo(f: Option>) { match f { Some(box ref _i) => {}, //~^ ERROR switch the order of `ref` and `box` None => {} } } fn main() { }