blob: 800aec3ef2ce7ad7f5b922dd90e6899216ce44e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
error[E0741]: `(fn(),)` can't be used as a const parameter type
--> $DIR/issue-99641.rs:5:35
|
LL | pub struct Color<const WHITE: (fn(),)>;
| ^^^^^^^
|
= note: `fn()` must implement `ConstParamTy`, but it does not
error[E0741]: `(fn(),)` can't be used as a const parameter type
--> $DIR/issue-99641.rs:8:23
|
LL | impl<const WHITE: (fn(),)> Color<WHITE> {
| ^^^^^^^
|
= note: `fn()` must implement `ConstParamTy`, but it does not
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0741`.
|