summaryrefslogtreecommitdiffstats
path: root/vendor/rayon/tests/issue671.rs
blob: 9d0953fe6aa39b56ae819eb4d63f363c69c85849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![type_length_limit = "500000"]

use rayon::prelude::*;

#[test]
fn type_length_limit() {
    let _ = Vec::<Result<(), ()>>::new()
        .into_par_iter()
        .map(|x| x)
        .map(|x| x)
        .map(|x| x)
        .map(|x| x)
        .map(|x| x)
        .map(|x| x)
        .collect::<Result<(), ()>>();
}