about summary refs log tree commit diff
path: root/src/test/ui/array-slice-vec/vector-no-ann.stderr
blob: 8a7b8d22760a273680124f95e8c823c5e70d9541 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0282]: type annotations needed for `Vec<T>`
  --> $DIR/vector-no-ann.rs:2:16
   |
LL |     let _foo = Vec::new();
   |         ----   ^^^^^^^^ cannot infer type for type parameter `T`
   |         |
   |         consider giving `_foo` the explicit type `Vec<T>`, where the type parameter `T` is specified

error: aborting due to previous error

For more information about this error, try `rustc --explain E0282`.