]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0087.md
Merge commit '266e96785ab71834b917bf474f130a6d8fdecd4b' into sync_cg_clif-2022-10-23
[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.