Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
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
};
}