Type annotation
Also written: type inference
A type annotation is writing a type yourself, like `let x: u32 = 5;`; type inference is Rust working it out from the value. Function parameters always need annotations.
Also written: type inference
A type annotation is writing a type yourself, like `let x: u32 = 5;`; type inference is Rust working it out from the value. Function parameters always need annotations.