]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tuple/wrong_argument_ice-3.stderr
Auto merge of #98656 - Dylan-DPC:rollup-hhytn0c, r=Dylan-DPC
[rust.git] / src / test / ui / tuple / wrong_argument_ice-3.stderr
1 error[E0061]: this function takes 1 argument but 2 arguments were supplied
2   --> $DIR/wrong_argument_ice-3.rs:9:16
3    |
4 LL |         groups.push(new_group, vec![process]);
5    |                ^^^^ ---------  ------------- argument of type `Vec<&Process>` unexpected
6    |                     |
7    |                     expected tuple, found struct `Vec`
8    |
9    = note: expected tuple `(Vec<String>, Vec<Process>)`
10              found struct `Vec<String>`
11 note: associated function defined here
12   --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
13    |
14 LL |     pub fn push(&mut self, value: T) {
15    |            ^^^^
16 help: remove the extra argument
17    |
18 LL |         groups.push(/* (Vec<String>, Vec<Process>) */);
19    |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0061`.