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