]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0282]: type annotations needed for `Vec<T>` |
0731742a | 2 | --> $DIR/cannot_infer_local_or_vec.rs:2:13 |
8bb4bdeb | 3 | | |
0531ce1d | 4 | LL | let x = vec![]; |
60c5eb7d | 5 | | - ^^^^^^ cannot infer type for type parameter `T` |
8bb4bdeb | 6 | | | |
1b1a35ee | 7 | | consider giving `x` the explicit type `Vec<T>`, where the type parameter `T` is specified |
8bb4bdeb | 8 | | |
74b04a01 | 9 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
8bb4bdeb | 10 | |
041b39d2 | 11 | error: aborting due to previous error |
8bb4bdeb | 12 | |
0531ce1d | 13 | For more information about this error, try `rustc --explain E0282`. |