]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type/type-check/cannot_infer_local_or_vec_in_tuples.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / type / type-check / cannot_infer_local_or_vec_in_tuples.stderr
1 error[E0282]: type annotations needed for `(Vec<T>,)`
2 --> $DIR/cannot_infer_local_or_vec_in_tuples.rs:2:18
3 |
4 LL | let (x, ) = (vec![], );
5 | ----- ^^^^^^ cannot infer type for type parameter `T`
6 | |
7 | consider giving this pattern the explicit type `(Vec<T>,)`, where the type parameter `T` is specified
8 |
9 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0282`.