2022-05-30 13:44:24 -05:00
|
|
|
struct A;
|
|
|
|
struct B;
|
|
|
|
struct C;
|
|
|
|
struct D;
|
|
|
|
struct E;
|
|
|
|
struct F;
|
|
|
|
struct G;
|
|
|
|
|
|
|
|
fn foo(a: &A, d: D, e: &E, g: G) {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo(&&A, B, C, D, E, F, G);
|
2023-01-04 21:02:10 -06:00
|
|
|
//~^ ERROR function takes 4 arguments but 7 arguments were supplied
|
2022-05-30 13:44:24 -05:00
|
|
|
}
|