2020-08-09 06:19:57 +00:00
|
|
|
error: using function pointers as const generic parameters is forbidden
|
2020-11-17 10:44:21 +00:00
|
|
|
--> $DIR/fn-const-param-call.rs:11:25
|
2020-08-09 06:19:57 +00:00
|
|
|
|
|
|
|
|
LL | struct Wrapper<const F: fn() -> u32>;
|
|
|
|
| ^^^^^^^^^^^
|
2023-09-28 20:51:48 +00:00
|
|
|
|
|
|
|
|
= note: the only supported types are integers, `bool` and `char`
|
2020-08-09 06:19:57 +00:00
|
|
|
|
|
|
|
error: using function pointers as const generic parameters is forbidden
|
2020-11-17 10:44:21 +00:00
|
|
|
--> $DIR/fn-const-param-call.rs:13:15
|
2020-08-09 06:19:57 +00:00
|
|
|
|
|
|
|
|
LL | impl<const F: fn() -> u32> Wrapper<F> {
|
|
|
|
| ^^^^^^^^^^^
|
2023-09-28 20:51:48 +00:00
|
|
|
|
|
|
|
|
= note: the only supported types are integers, `bool` and `char`
|
2020-08-09 06:19:57 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|