]> git.lizzy.rs Git - rust.git/blob - src/test/ui/argument-suggestions/issue-98897.stderr
Make some diagnostics not depend on the source of what they reference being available
[rust.git] / src / test / ui / argument-suggestions / issue-98897.stderr
1 error[E0057]: this function takes 2 arguments but 1 argument was supplied
2   --> $DIR/issue-98897.rs:2:5
3    |
4 LL |     (|_, ()| ())([return, ()]);
5    |     ^^^^^^^^^^^^-------------- an argument of type `()` is missing
6    |
7 note: closure defined here
8   --> $DIR/issue-98897.rs:2:6
9    |
10 LL |     (|_, ()| ())([return, ()]);
11    |      ^^^^^^^
12 help: provide the argument
13    |
14 LL |     (|_, ()| ())([return, ()], ());
15    |                 ~~~~~~~~~~~~~~~~~~
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0057`.