11 lines
326 B
Plaintext
11 lines
326 B
Plaintext
error: using function pointers as const generic parameters is forbidden
|
|
--> $DIR/fn-const-param-infer.rs:6:25
|
|
|
|
|
LL | struct Checked<const F: fn(usize) -> bool>;
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: the only supported types are integers, `bool` and `char`
|
|
|
|
error: aborting due to previous error
|
|
|