compiler/rustc_error_codes/src/error_codes/E0089.md MARKDOWN 26 lines View on github.com → Search inside
1#### Note: this error code is no longer emitted by the compiler.23Too few type arguments were supplied for a function. For example:45```compile_fail,E01076fn foo<T, U>() {}78fn main() {9    foo::<f64>(); // error: wrong number of type arguments: expected 2, found 110}11```1213Note that if a function takes multiple type arguments but you want the compiler14to infer some of them, you can use type placeholders:1516```compile_fail,E010717fn foo<T, U>(x: T) {}1819fn main() {20    let x: bool = true;21    foo::<f64>(x);    // error: wrong number of type arguments:22                      //        expected 2, found 123    foo::<_, f64>(x); // same as `foo::<bool, f64>(x)`24}25```

Findings

✓ No findings reported for this file.

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.