rust/tests/ui/issues/issue-16939.stderr

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

19 lines
473 B
Plaintext
Raw Normal View History

error[E0057]: this function takes 0 arguments but 1 argument was supplied
2018-12-25 15:56:47 +00:00
--> $DIR/issue-16939.rs:5:9
2018-07-15 21:11:54 +00:00
|
2019-03-09 12:03:44 +00:00
LL | |t| f(t);
2023-02-01 17:44:48 +00:00
| ^ -
| |
| unexpected argument
| help: remove the extra argument
|
note: callable defined here
--> $DIR/issue-16939.rs:4:12
|
LL | fn _foo<F: Fn()> (f: F) {
| ^^^^
2018-07-15 21:11:54 +00:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0057`.