]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type/type-dependent-def-issue-49241.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / type / type-dependent-def-issue-49241.rs
CommitLineData
a7813a04 1fn main() {
0531ce1d 2 let v = vec![0];
9fa01778 3 const l: usize = v.count(); //~ ERROR attempt to use a non-constant value in a constant
94b46f34 4 let s: [u32; l] = v.into_iter().collect();
a1dfa0c6 5 //~^ ERROR evaluation of constant value failed
60c5eb7d 6 //~^^ ERROR a value of type
54a0048b 7}