The Rust compiler is usually able to infer the type of an expression that is returned from a closure:
fn main() { let a_closure = |num|{ num+1.0