]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type/type-check/cannot_infer_local_or_vec.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / type / type-check / cannot_infer_local_or_vec.stderr
CommitLineData
1b1a35ee 1error[E0282]: type annotations needed for `Vec<T>`
0731742a 2 --> $DIR/cannot_infer_local_or_vec.rs:2:13
8bb4bdeb 3 |
0531ce1d 4LL | 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 11error: aborting due to previous error
8bb4bdeb 12
0531ce1d 13For more information about this error, try `rustc --explain E0282`.