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