2020-08-09 06:19:57 +00:00
|
|
|
error: using function pointers as const generic parameters is forbidden
|
2024-07-14 12:38:51 +00:00
|
|
|
--> $DIR/fn-const-param-call.rs:13:25
|
2020-08-09 06:19:57 +00:00
|
|
|
|
|
|
|
|
LL | struct Wrapper<const F: fn() -> u32>;
|
|
|
|
| ^^^^^^^^^^^
|
2023-09-28 20:51:48 +00:00
|
|
|
|
|
2024-09-29 20:28:11 +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
|
2024-07-14 12:38:51 +00:00
|
|
|
--> $DIR/fn-const-param-call.rs:15: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
|
|
|
|
|
2024-09-29 20:28:11 +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
|
|
|
|
|