1 2 3 4 5 6 7 8 9 10 11 12 13 14
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); //~^ ERROR function takes 4 arguments but 7 arguments were supplied }