3 #![allow(unused_variables)]
4 #![allow(stable_features)]
6 // Tests parallel codegen - this can fail if the symbol for the anonymous
7 // closure in `sum` pollutes the second codegen unit from the first.
9 // compile-flags: -C codegen_units=2
11 #![feature(iter_arith)]
15 let x = ["a", "bob", "c"];
16 let len: usize = x.iter().map(|s| s.len()).sum();
22 let x = ["a", "bob", "c"];
23 let len: usize = x.iter().map(|s| s.len()).sum();