os-rust/src/test/ui/array-slice-vec/vector-no-ann.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
420 B
Text
Raw Normal View History

error[E0282]: type annotations needed for `Vec<T>`
2018-12-25 08:56:47 -07:00
--> $DIR/vector-no-ann.rs:2:16
|
2018-02-23 03:42:32 +03:00
LL | let _foo = Vec::new();
2019-12-11 17:06:24 -08:00
| ---- ^^^^^^^^ 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
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0282`.