1 #![deny(unreachable_patterns)]
4 let s = &["0x00"; 4][..]; //Slice of any value
5 const MAGIC_TEST: &[&str] = &["4", "5", "6", "7"]; //Const slice to pattern match with
8 ["0x00", "0x00", "0x00", "0x00"] => (),
9 ["4", "5", "6", "7"] => (), // FIXME(oli-obk): this should warn, but currently does not
13 ["0x00", "0x00", "0x00", "0x00"] => (),
15 ["4", "5", "6", "7"] => (), // FIXME(oli-obk): this should warn, but currently does not
19 ["0x00", "0x00", "0x00", "0x00"] => (),
20 ["4", "5", "6", "7"] => (),
21 MAGIC_TEST => (), // FIXME(oli-obk): this should warn, but currently does not
24 const FOO: [&str; 1] = ["boo"];
28 FOO => (), //~ ERROR unreachable pattern