2023-05-16 23:05:46 -05:00
|
|
|
error[E0741]: `(fn(),)` can't be used as a const parameter type
|
2022-07-23 15:09:52 -05:00
|
|
|
--> $DIR/issue-99641.rs:5:35
|
|
|
|
|
|
|
|
|
LL | pub struct Color<const WHITE: (fn(),)>;
|
|
|
|
| ^^^^^^^
|
2023-05-16 23:05:46 -05:00
|
|
|
|
|
2024-07-14 07:38:51 -05:00
|
|
|
= note: `fn()` must implement `ConstParamTy_`, but it does not
|
2022-07-23 15:09:52 -05:00
|
|
|
|
2023-05-16 23:05:46 -05:00
|
|
|
error[E0741]: `(fn(),)` can't be used as a const parameter type
|
2022-07-23 15:09:52 -05:00
|
|
|
--> $DIR/issue-99641.rs:8:23
|
|
|
|
|
|
|
|
|
LL | impl<const WHITE: (fn(),)> Color<WHITE> {
|
|
|
|
| ^^^^^^^
|
2023-05-16 23:05:46 -05:00
|
|
|
|
|
2024-07-14 07:38:51 -05:00
|
|
|
= note: `fn()` must implement `ConstParamTy_`, but it does not
|
2022-07-23 15:09:52 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0741`.
|