]> git.proxmox.com Git - rustc.git/blame - src/test/ui/argument-suggestions/issue-97484.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / argument-suggestions / issue-97484.stderr
CommitLineData
923072b8
FG
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);
f2b60f7d
FG
5 | ^^^ - - - - argument of type `F` unexpected
6 | | | |
7 | | | expected `&E`, found struct `E`
064997fb
FG
8 | | argument of type `C` unexpected
9 | argument of type `B` unexpected
923072b8
FG
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 | ^^^ ----- ---- ----- ----
064997fb 16help: consider borrowing here
923072b8 17 |
064997fb
FG
18LL | foo(&&A, B, C, D, &E, F, G);
19 | ~~
923072b8
FG
20help: remove the extra arguments
21 |
22LL | foo(&&A, D, /* &E */, G);
f2b60f7d 23 | ~~~~~~~~~~~~~~~~~~~~~
923072b8
FG
24
25error: aborting due to previous error
26
27For more information about this error, try `rustc --explain E0061`.