os-rust/src/test/ui/vector-no-ann.stderr

12 lines
440 B
Text
Raw Normal View History

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
|
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`
| |
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
error: aborting due to previous error
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0282`.