2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: function takes 2 generic arguments but 1 generic argument was supplied
|
2022-05-09 09:14:43 -05:00
|
|
|
--> $DIR/not-enough-args.rs:4:5
|
2021-08-03 06:38:48 -05:00
|
|
|
|
|
|
|
|
LL | f::<[u8]>("a", b"a");
|
|
|
|
| ^ ---- supplied 1 generic argument
|
|
|
|
| |
|
|
|
|
| expected 2 generic arguments
|
|
|
|
|
|
|
|
|
note: function defined here, with 2 generic parameters: `T`, `U`
|
2022-05-09 09:14:43 -05:00
|
|
|
--> $DIR/not-enough-args.rs:1:4
|
2021-08-03 06:38:48 -05:00
|
|
|
|
|
|
|
|
LL | fn f<T: ?Sized, U: ?Sized>(_: impl AsRef<T>, _: impl AsRef<U>) {}
|
|
|
|
| ^ - -
|
|
|
|
help: add missing generic argument
|
|
|
|
|
|
|
|
|
LL | f::<[u8], U>("a", b"a");
|
2021-06-21 21:07:19 -05:00
|
|
|
| +++
|
2021-08-03 06:38:48 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0107`.
|