2019-06-01 14:47:15 -07:00
|
|
|
error[E0282]: type annotations needed for `std::vec::Vec<T>`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/vector-no-ann.rs:2:16
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | let _foo = Vec::new();
|
2019-12-11 17:06:24 -08:00
|
|
|
| ---- ^^^^^^^^ cannot infer type for type parameter `T`
|
2017-12-10 22:47:55 +03:00
|
|
|
| |
|
2019-06-01 14:47:15 -07:00
|
|
|
| consider giving `_foo` the explicit type `std::vec::Vec<T>`, where the type parameter `T` is specified
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0282`.
|