]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0087.md
Merge commit '40dd3e2b7089b5e96714e064b731f6dbf17c61a9' into sync_cg_clif-2021-05-27
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0087.md
1 #### Note: this error code is no longer emitted by the compiler.
2
3 Too many type arguments were supplied for a function. For example:
4
5 ```compile_fail,E0107
6 fn foo<T>() {}
7
8 fn main() {
9     foo::<f64, bool>(); // error: wrong number of type arguments:
10                         //        expected 1, found 2
11 }
12 ```
13
14 The number of supplied arguments must exactly match the number of defined type
15 parameters.