Sign in
fuchsia
/
third_party
/
rust
/
f02ffb8b4ca760117875f3b5326e9cff6598dde3
/
.
/
src
/
test
/
ui
/
type
/
type-dependent-def-issue-49241.rs
blob: 5ad50ffcbc389cabdef2eba58d1d284275495aed [
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
//~^^ ERROR a collection of type
}