These are chat archives for rust-lang/rust

27th
Jun 2015
Ihor Kaharlichenko
@kaharlichenko
Jun 27 2015 16:43
I wonder what is the type of x in the following code and how do I specify it explicitly instead of relying on type inferrence:
let a = [1, 2, 3, 4];
let b = a.iter().filter(|&x| *x < 1).collect::<Vec<_>>();