mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 17:14:50 +00:00
15 lines
238 B
Plaintext
15 lines
238 B
Plaintext
//@ 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() { }
|