]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-dependent-def-issue-49241.rs
Rollup merge of #105674 - estebank:iterator-chains, r=oli-obk
[rust.git] / src / test / ui / type / type-dependent-def-issue-49241.rs
1 fn main() {
2     let v = vec![0];
3     const l: usize = v.count(); //~ ERROR attempt to use a non-constant value in a constant
4     let s: [u32; l] = v.into_iter().collect();
5     //~^ constant
6 }