rust/tests/ui/argument-suggestions/issue-97484.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
226 B
Rust
Raw Normal View History

2022-05-30 18:44:24 +00: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);
//~^ ERROR function takes 4 arguments but 7 arguments were supplied
2022-05-30 18:44:24 +00:00
}