推断类型

语法
InferredType : _

推断类型要求编译器根据可用的周围信息尽可能地推断类型。

它不能用于条目签名。

它通常用于泛型参数

#![allow(unused)]
fn main() {
let x: Vec<_> = (0..10).collect();
}