]>
Commit | Line | Data |
---|---|---|
72b1a166 | 1 | error[E0282]: type annotations needed for `Vec<T>` |
0731742a | 2 | --> $DIR/vector-no-ann.rs:2:16 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | let _foo = Vec::new(); |
d9bb1a4e | 5 | | ---- ^^^^^^^^ cannot infer type for type parameter `T` |
ff7c6d11 | 6 | | | |
72b1a166 | 7 | | consider giving `_foo` the explicit type `Vec<T>`, where the type parameter `T` is specified |
ff7c6d11 XL |
8 | |
9 | error: aborting due to previous error | |
10 | ||
0531ce1d | 11 | For more information about this error, try `rustc --explain E0282`. |