Debian Codegraph @

.cargo/vendor/rayon/tests/issue671-unzip.rs

raw
1 #![type_length_limit = "10000"]
2
3 use rayon::prelude::*;
4
5 #[test]
6 fn type_length_limit() {
7 let input = vec![1, 2, 3, 4, 5];
8 let (indexes, (squares, cubes)): (Vec<_>, (Vec<_>, Vec<_>)) = input
9 .par_iter()
10 .map(|x| (x * x, x * x * x))
11 .enumerate()
12 .unzip();
13
14 drop(indexes);
15 drop(squares);
16 drop(cubes);
17 }