Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 516 Bytes

inferred.md

File metadata and controls

18 lines (14 loc) · 516 Bytes

Inferred type

Syntax
InferredType : _

The inferred type asks the compiler to infer the type if possible based on the surrounding information available. It cannot be used in item signatures. It is often used in generic arguments:

let x: Vec<_> = (0..10).collect();