2019-11-17 22:43:06 +00:00
|
|
|
// check-pass
|
2019-12-30 01:23:42 +01:00
|
|
|
|
2019-11-17 22:25:51 +00:00
|
|
|
#![deny(unreachable_patterns)]
|
|
|
|
|
|
|
|
const C0: &'static [u8] = b"\x00";
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x: &[u8] = &[0];
|
|
|
|
match x {
|
|
|
|
&[] => {}
|
|
|
|
&[1..=255] => {}
|
2019-11-17 22:43:06 +00:00
|
|
|
C0 => {}
|
2019-11-17 22:25:51 +00:00
|
|
|
&[_, _, ..] => {}
|
|
|
|
}
|
|
|
|
}
|