From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/tuple/wrong_argument_ice-3.stderr | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/ui/tuple/wrong_argument_ice-3.stderr (limited to 'tests/ui/tuple/wrong_argument_ice-3.stderr') diff --git a/tests/ui/tuple/wrong_argument_ice-3.stderr b/tests/ui/tuple/wrong_argument_ice-3.stderr new file mode 100644 index 000000000..0a503e1fe --- /dev/null +++ b/tests/ui/tuple/wrong_argument_ice-3.stderr @@ -0,0 +1,23 @@ +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]); + | ^^^^ ------------- argument of type `Vec<&Process>` unexpected + | +note: expected tuple, found struct `Vec` + --> $DIR/wrong_argument_ice-3.rs:9:21 + | +LL | groups.push(new_group, vec![process]); + | ^^^^^^^^^ + = note: expected tuple `(Vec, Vec)` + found struct `Vec` +note: associated function defined here + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +help: remove the extra argument + | +LL | groups.push(/* (Vec, Vec) */); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0061`. -- cgit v1.2.3