mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
15 lines
231 B
Rust
15 lines
231 B
Rust
|
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 this function takes 4 arguments but 7 arguments were supplied
|
||
|
}
|