summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/missing-type-param-used-in-param.stderr
blob: 3116c5a0a1cd758bd279a7f29355dd203c7dd54d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0107]: function takes 2 generic arguments but 1 generic argument was supplied
  --> $DIR/missing-type-param-used-in-param.rs:6:5
   |
LL |     two_type_params::<String>(100);
   |     ^^^^^^^^^^^^^^^   ------ supplied 1 generic argument
   |     |
   |     expected 2 generic arguments
   |
note: function defined here, with 2 generic parameters: `A`, `B`
  --> $DIR/missing-type-param-used-in-param.rs:3:4
   |
LL | fn two_type_params<A, B>(_: B) {}
   |    ^^^^^^^^^^^^^^^ -  -
help: add missing generic argument
   |
LL |     two_type_params::<String, _>(100);
   |                             +++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0107`.