fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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