]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0593.md
Rollup merge of #66576 - pnkfelix:more-robust-gdb-vec-printer, r=alexcrichton
[rust.git] / src / librustc_error_codes / error_codes / E0593.md
1 You tried to supply an `Fn`-based type with an incorrect number of arguments
2 than what was expected.
3
4 Erroneous code example:
5
6 ```compile_fail,E0593
7 fn foo<F: Fn()>(x: F) { }
8
9 fn main() {
10     // [E0593] closure takes 1 argument but 0 arguments are required
11     foo(|y| { });
12 }
13 ```