Sign in
fuchsia
/
third_party
/
rust
/
6c94ceb691bf334043e3d679a17b0d30d788e43e
/
.
/
src
/
test
/
ui
/
issues
/
issue-12369.rs
blob: 0481c1fd9e1bbdb4e5d67e96396ce3087b6c9e6e [
file
] [
log
] [
blame
]
#![
deny
(
unreachable_patterns
)]
fn
main
()
{
let
sl
=
vec
![
1
,
2
,
3
];
let
v
:
isize
=
match
&*
sl
{
&[]
=>
0
,
&[
a
,
b
,
c
]
=>
3
,
&[
a
,
ref
rest
@
..]
=>
a
,
&[
10
,
a
,
ref
rest
@
..]
=>
10
//~ ERROR: unreachable pattern
};
}