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