error[E0282]: type annotations needed for `Vec` --> $DIR/vector-no-ann.rs:2:16 | LL | let _foo = Vec::new(); | ---- ^^^^^^^^ cannot infer type for type parameter `T` | | | consider giving `_foo` the explicit type `Vec`, where the type parameter `T` is specified error: aborting due to previous error For more information about this error, try `rustc --explain E0282`.