]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tuple/wrong_argument_ice-3.stderr
Rollup merge of #99064 - lyming2007:issue-97687-fix, r=estebank
[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 note: expected tuple, found struct `Vec`
8   --> $DIR/wrong_argument_ice-3.rs:9:21
9    |
10 LL |         groups.push(new_group, vec![process]);
11    |                     ^^^^^^^^^
12    = note: expected tuple `(Vec<String>, Vec<Process>)`
13              found struct `Vec<String>`
14 note: associated function defined here
15   --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
16    |
17 LL |     pub fn push(&mut self, value: T) {
18    |            ^^^^
19 help: remove the extra argument
20    |
21 LL |         groups.push(/* (Vec<String>, Vec<Process>) */);
22    |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23
24 error: aborting due to previous error
25
26 For more information about this error, try `rustc --explain E0061`.