Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
pattern
/
usefulness
/
match-byte-array-patterns-2.rs
blob: 33468d03fae40338f4b76e7cd28cf0206f2f03e5 [
file
] [
log
] [
blame
] [
edit
]
fn
main
()
{
let
buf
=
&[
0
,
1
,
2
,
3
];
match
buf
{
//~ ERROR non-exhaustive
b
"AAAA"
=>
{}
}
let
buf
:
&[
u8
]
=
buf
;
match
buf
{
//~ ERROR non-exhaustive
b
"AAAA"
=>
{}
}
}