]> git.lizzy.rs Git - rust.git/blob - src/test/ui/argument-suggestions/issue-97484.stderr
Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup
[rust.git] / src / test / ui / argument-suggestions / issue-97484.stderr
1 error[E0061]: this function takes 4 arguments but 7 arguments were supplied
2   --> $DIR/issue-97484.rs:12:5
3    |
4 LL |     foo(&&A, B, C, D, E, F, G);
5    |     ^^^      -  -        - argument of type `F` unexpected
6    |              |  |
7    |              |  argument of type `C` unexpected
8    |              argument of type `B` unexpected
9    |
10 note: function defined here
11   --> $DIR/issue-97484.rs:9:4
12    |
13 LL | fn foo(a: &A, d: D, e: &E, g: G) {}
14    |    ^^^ -----  ----  -----  ----
15 help: consider borrowing here
16    |
17 LL |     foo(&&A, B, C, D, &E, F, G);
18    |                       ~~
19 help: remove the extra arguments
20    |
21 LL |     foo(&&A, D, /* &E */, G);
22    |     ~~~~~~~~~~~~~~~~~~~~~~~~
23
24 error: aborting due to previous error
25
26 For more information about this error, try `rustc --explain E0061`.