diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2023-02-02 15:59:02 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2023-02-14 20:22:10 +0000 |
| commit | dff10d0668a1e89782fb660e033d6a57ab122266 (patch) | |
| tree | 700a20ab9b1f43178c727a8c986eb46eae2db976 /tests/ui/tuple | |
| parent | 755252bf51c121b17436f59b35cfdbc7f0058d96 (diff) | |
| download | rust-dff10d0668a1e89782fb660e033d6a57ab122266.tar.gz rust-dff10d0668a1e89782fb660e033d6a57ab122266.zip | |
Re-add replacement logic and add comment explaining it
Diffstat (limited to 'tests/ui/tuple')
| -rw-r--r-- | tests/ui/tuple/wrong_argument_ice-3.stderr | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/ui/tuple/wrong_argument_ice-3.stderr b/tests/ui/tuple/wrong_argument_ice-3.stderr index 8b4fca4de7d..7143c959478 100644 --- a/tests/ui/tuple/wrong_argument_ice-3.stderr +++ b/tests/ui/tuple/wrong_argument_ice-3.stderr @@ -2,10 +2,7 @@ error[E0061]: this method takes 1 argument but 2 arguments were supplied --> $DIR/wrong_argument_ice-3.rs:9:16 | LL | groups.push(new_group, vec![process]); - | ^^^^ --------------- - | | | - | | unexpected argument of type `Vec<&Process>` - | help: remove the extra argument + | ^^^^ ------------- unexpected argument of type `Vec<&Process>` | note: expected `(Vec<String>, Vec<Process>)`, found `Vec<String>` --> $DIR/wrong_argument_ice-3.rs:9:21 @@ -16,6 +13,11 @@ LL | groups.push(new_group, vec![process]); found struct `Vec<String>` note: associated function defined here --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +help: remove the extra argument + | +LL - groups.push(new_group, vec![process]); +LL + groups.push(/* (Vec<String>, Vec<Process>) */); + | error: aborting due to previous error |
