Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
type
/
type-dependent-def-issue-49241.rs
blob: 51bd116fbd61c071caed3376d2ffbe5f8aa668fa [
file
] [
log
] [
blame
]
fn
main
()
{
let
v
=
vec
![
0
];
const
l
:
usize
=
v
.
count
();
//~ ERROR attempt to use a non-constant value in a constant
let
s
:
[
u32
;
l
]
=
v
.
into_iter
().
collect
();
//~^ ERROR evaluation of constant value failed
}