summary refs log tree commit diff
path: root/tests/ui/array-slice-vec/vector-no-ann.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/array-slice-vec/vector-no-ann.stderr')
-rw-r--r--tests/ui/array-slice-vec/vector-no-ann.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/array-slice-vec/vector-no-ann.stderr b/tests/ui/array-slice-vec/vector-no-ann.stderr
new file mode 100644
index 00000000000..d2ea08aa474
--- /dev/null
+++ b/tests/ui/array-slice-vec/vector-no-ann.stderr
@@ -0,0 +1,14 @@
+error[E0282]: type annotations needed for `Vec<T>`
+  --> $DIR/vector-no-ann.rs:2:9
+   |
+LL |     let _foo = Vec::new();
+   |         ^^^^
+   |
+help: consider giving `_foo` an explicit type, where the type for type parameter `T` is specified
+   |
+LL |     let _foo: Vec<T> = Vec::new();
+   |             ++++++++
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0282`.