1 #![deny(unreachable_patterns)]
4 let buf = &[0, 1, 2, 3];
8 &[0x41, 0x41, 0x41, 0x41] => {} //~ ERROR unreachable pattern
13 &[0x41, 0x41, 0x41, 0x41] => {}
14 b"AAAA" => {}, //~ ERROR unreachable pattern
19 &[_, 0x41, 0x41, 0x41] => {},
20 b"AAAA" => {}, //~ ERROR unreachable pattern
25 &[0x41, .., 0x41] => {}
26 b"AAAA" => {}, //~ ERROR unreachable pattern
34 &[0x41, 0x41, 0x41, 0x41] => {} //~ ERROR unreachable pattern
39 &[0x41, 0x41, 0x41, 0x41] => {}
40 b"AAAA" => {}, //~ ERROR unreachable pattern
45 &[_, 0x41, 0x41, 0x41] => {},
46 b"AAAA" => {}, //~ ERROR unreachable pattern
51 &[0x41, .., 0x41] => {}
52 b"AAAA" => {}, //~ ERROR unreachable pattern