Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
type
/
type-dependent-def-issue-49241.rs
blob: a25e3ba5fa89f9fa269853bbd47e68a41bdb9ce6 [
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 value of type
}