]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/missing-type-param-used-in-param.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / missing-type-param-used-in-param.stderr
1 error[E0107]: this function takes 2 generic arguments but 1 generic argument was supplied
2   --> $DIR/missing-type-param-used-in-param.rs:6:5
3    |
4 LL |     two_type_params::<String>(100);
5    |     ^^^^^^^^^^^^^^^   ------ supplied 1 generic argument
6    |     |
7    |     expected 2 generic arguments
8    |
9 note: function defined here, with 2 generic parameters: `A`, `B`
10   --> $DIR/missing-type-param-used-in-param.rs:3:4
11    |
12 LL | fn two_type_params<A, B>(_: B) {}
13    |    ^^^^^^^^^^^^^^^ -  -
14 help: add missing generic argument
15    |
16 LL |     two_type_params::<String, _>(100);
17    |                             +++
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0107`.