]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0087.md
Merge commit '61eb38aeda6cb54b93b872bf503d70084c4d621c' into clippyup
[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.