Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
pattern
/
usefulness
/
65413-constants-and-slices-exhaustiveness.rs
blob: 6c54c938bf110af6dd5ed07c3a1536f20d627990 [
file
] [
log
] [
blame
]
// check-pass
#![
feature
(
slice_patterns
)]
#![
deny
(
unreachable_patterns
)]
const
C0
:
&
'
static
[
u8
]
=
b
"\x00"
;
fn
main
()
{
let
x
:
&[
u8
]
=
&[
0
];
match
x
{
&[]
=>
{}
&[
1.
.=
255
]
=>
{}
C0
=>
{}
&[
_
,
_
,
..]
=>
{}
}
}