]> git.lizzy.rs Git - rust.git/blob - tests/ui/array-slice-vec/vector-no-ann.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / array-slice-vec / vector-no-ann.stderr
1 error[E0282]: type annotations needed for `Vec<T>`
2   --> $DIR/vector-no-ann.rs:2:9
3    |
4 LL |     let _foo = Vec::new();
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    |             ++++++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0282`.