summaryrefslogtreecommitdiffstats
path: root/tests/ui/type/type-ascription-instead-of-initializer.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/type/type-ascription-instead-of-initializer.stderr')
-rw-r--r--tests/ui/type/type-ascription-instead-of-initializer.stderr9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/ui/type/type-ascription-instead-of-initializer.stderr b/tests/ui/type/type-ascription-instead-of-initializer.stderr
index ba8d15d0b..429501c27 100644
--- a/tests/ui/type/type-ascription-instead-of-initializer.stderr
+++ b/tests/ui/type/type-ascription-instead-of-initializer.stderr
@@ -11,14 +11,13 @@ error[E0061]: this function takes 1 argument but 2 arguments were supplied
--> $DIR/type-ascription-instead-of-initializer.rs:2:12
|
LL | let x: Vec::with_capacity(10, 20);
- | ^^^^^^^^^^^^^^^^^^ -- argument of type `{integer}` unexpected
+ | ^^^^^^^^^^^^^^^^^^ ----
+ | | |
+ | | unexpected argument of type `{integer}`
+ | help: remove the extra argument
|
note: associated function defined here
--> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
-help: remove the extra argument
- |
-LL | let x: Vec::with_capacity(10);
- | ~~~~
error: aborting due to 2 previous errors