Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
type
/
type-dependent-def-issue-49241.rs
blob: 4b6bc6124dbf301e232d640498f539cfde51fbba [
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
();
}