2020-02-06 05:08:07 +00:00
|
|
|
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
|
2021-01-02 18:45:11 +00:00
|
|
|
|
|
2022-07-10 21:59:31 +00:00
|
|
|
note: callable defined here
|
|
|
|
--> $DIR/issue-16939.rs:4:12
|
2021-01-02 18:45:11 +00:00
|
|
|
|
|
2022-07-10 21:59:31 +00:00
|
|
|
LL | fn _foo<F: Fn()> (f: F) {
|
|
|
|
| ^^^^
|
2018-07-15 21:11:54 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0057`.
|