1 #![feature(slice_patterns)]
2 #![deny(unreachable_patterns)]
5 let buf = &[0, 1, 2, 3];
9 &[0x41, 0x41, 0x41, 0x41] => {} //~ ERROR unreachable pattern
14 &[0x41, 0x41, 0x41, 0x41] => {}
15 b"AAAA" => {}, //~ ERROR unreachable pattern
20 &[_, 0x41, 0x41, 0x41] => {},
21 b"AAAA" => {}, //~ ERROR unreachable pattern
26 &[0x41, .., 0x41] => {}
27 b"AAAA" => {}, //~ ERROR unreachable pattern
35 &[0x41, 0x41, 0x41, 0x41] => {} //~ ERROR unreachable pattern
40 &[0x41, 0x41, 0x41, 0x41] => {}
41 b"AAAA" => {}, //~ ERROR unreachable pattern
46 &[_, 0x41, 0x41, 0x41] => {},
47 b"AAAA" => {}, //~ ERROR unreachable pattern
52 &[0x41, .., 0x41] => {}
53 b"AAAA" => {}, //~ ERROR unreachable pattern