You often don't need it at all;
fn foo(x: f32) { println!("{}", x); }
fn main() {
let x = 5.0;
foo(x);
}
It will look at the signature for foo, and infer that x must be f32.