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