4 let s = &[0x00; 4][..]; //Slice of any value
5 const MAGIC_TEST: &[u32] = &[4, 5, 6, 7]; //Const slice to pattern match with
8 [0x00, 0x00, 0x00, 0x00] => (),
9 [4, 5, 6, 7] => (), // this should warn
13 [0x00, 0x00, 0x00, 0x00] => (),
15 [4, 5, 6, 7] => (), // this should warn
19 [0x00, 0x00, 0x00, 0x00] => (),
21 MAGIC_TEST => (), // this should warn
24 const FOO: [u32; 1] = [4];
28 FOO => (), // this should warn