1 error[E0061]: this function takes 4 arguments but 7 arguments were supplied
2 --> $DIR/issue-97484.rs:12:5
4 LL | foo(&&A, B, C, D, E, F, G);
5 | ^^^ - - - argument unexpected
7 | | argument of type `&E` unexpected
8 | argument of type `D` unexpected
10 note: function defined here
11 --> $DIR/issue-97484.rs:9:4
13 LL | fn foo(a: &A, d: D, e: &E, g: G) {}
14 | ^^^ ----- ---- ----- ----
15 help: consider removing the ``
17 LL - foo(&&A, B, C, D, E, F, G);
18 LL + foo(&&A, B, C, D, E, F, G);
20 help: remove the extra arguments
22 LL | foo(&&A, D, /* &E */, G);
23 | ~~~~~~~~~~~~~~~~~~~~~~~~
25 error: aborting due to previous error
27 For more information about this error, try `rustc --explain E0061`.