Closed
Description
fn main() {
let a = Vec::new();
}
Gives me:
<anon>:2:13: 2:21 error: unable to infer enough type information about `_`; type annotations required [E0282]
<anon>:2 let a = Vec::new();
^~~~~~~~
This is confusing because it doesn't say what the _
is that it can't figure out. Perhaps it could say something like:
Only able to infer that `a` has type `Vec<_>`; please annotate so I can figure out what `_` is.