2023-02-23 10:27:06 -07:00
|
|
|
error[E0107]: function takes 2 generic arguments but 1 generic argument was supplied
|
2020-09-11 18:39:26 +02:00
|
|
|
--> $DIR/issue-76595.rs:15:5
|
|
|
|
|
|
|
|
|
LL | test::<2>();
|
2021-01-02 19:45:11 +01: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 12:16:20 -07:00
|
|
|
| ^^^^ - --------------
|
2021-01-02 19:45:11 +01:00
|
|
|
help: add missing generic argument
|
|
|
|
|
|
|
|
|
LL | test::<2, P>();
|
2021-06-21 19:07:19 -07:00
|
|
|
| +++
|
2020-09-11 18:39:26 +02:00
|
|
|
|
2020-09-28 19:44:23 +02:00
|
|
|
error: aborting due to previous error
|
2020-09-11 18:39:26 +02:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0107`.
|