4 #![allow(clippy::uninlined_format_args)]
8 let s = [0, 1, 2, 3, 4];
15 y @ None => (), // no error
18 [x, inside @ .., y] => (), // no error
22 let mut mutv = vec![1, 2, 3];
24 // required "ref" left out in suggestion: #5271
28 println!("vec: {:?}", x);
30 ref y if y == &vec![0] => (),
34 ref x => println!("vec: {:?}", x),
35 ref y if y == &vec![0] => (),