2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: function takes 2 generic arguments but 1 generic argument was supplied
|
2020-09-11 11:39:26 -05:00
|
|
|
--> $DIR/issue-76595.rs:15:5
|
|
|
|
|
|
|
|
|
LL | test::<2>();
|
2021-01-02 12:45:11 -06:00
|
|
|
| ^^^^ - supplied 1 generic argument
|
|
|
|
| |
|
|
|
|
| expected 2 generic arguments
|
|
|
|
|
|
|
|
|
note: function defined here, with 2 generic parameters: `T`, `P`
|
|
|
|
--> $DIR/issue-76595.rs:10:4
|
|
|
|
|
|
|
|
|
LL | fn test<T, const P: usize>() where Bool<{core::mem::size_of::<T>() > 4}>: True {
|
2022-04-04 14:16:20 -05:00
|
|
|
| ^^^^ - --------------
|
2021-01-02 12:45:11 -06:00
|
|
|
help: add missing generic argument
|
|
|
|
|
|
|
|
|
LL | test::<2, P>();
|
2021-06-21 21:07:19 -05:00
|
|
|
| +++
|
2020-09-11 11:39:26 -05:00
|
|
|
|
2020-09-28 12:44:23 -05:00
|
|
|
error: aborting due to previous error
|
2020-09-11 11:39:26 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0107`.
|