diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-02-16 17:51:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-16 17:51:24 +0100 |
commit | f65c6e416c6f401c332149da8f8ad1d7b8a218a7 (patch) | |
tree | 2df99e5c84a8c16679f63e9c428e1d8de916e5e1 /tests/ui/type | |
parent | af3c8b27266e290cf65704284f6862d0f90ee4fc (diff) | |
parent | dff10d0668a1e89782fb660e033d6a57ab122266 (diff) | |
download | rust-f65c6e416c6f401c332149da8f8ad1d7b8a218a7.tar.gz |
Rollup merge of #106347 - estebank:removal-suggestion, r=TaKO8Ki
More accurate spans for arg removal suggestion
Partially address #106304.
Diffstat (limited to 'tests/ui/type')
-rw-r--r-- | tests/ui/type/type-ascription-instead-of-initializer.stderr | 9 |
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 ba8d15d0b73..429501c2762 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 |