Sign in
fuchsia
/
third_party
/
rust
/
0.4
/
.
/
src
/
test
/
compile-fail
/
issue-2150.rs
blob: 7234ca9e9e166f47e3837d2ff53805a3bd0a738e [
file
]
fn
fail_len
(
v
:
~[
const
int
])
->
uint
{
let
mut
i
=
fail
;
for
v
.
each
|
x
|
{
i
+=
1u
;
}
//~^ WARNING unreachable statement
//~^^ ERROR the type of this value must be known
return
i
;
}
fn
main
()
{}