mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 07:00:47 +00:00
16 lines
229 B
Rust
16 lines
229 B
Rust
//@ check-pass
|
|
|
|
#![deny(unreachable_patterns)]
|
|
|
|
const C0: &'static [u8] = b"\x00";
|
|
|
|
fn main() {
|
|
let x: &[u8] = &[0];
|
|
match x {
|
|
&[] => {}
|
|
&[1..=255] => {}
|
|
C0 => {}
|
|
&[_, _, ..] => {}
|
|
}
|
|
}
|