Closed
Description
The following code fails to compile, because using function pointers as const generics is forbidden:
#![feature(const_generics)]
struct A<const F: fn()>;
However, if the function pointer is inside an array, it suddenly compiles:
#![feature(const_generics)]
struct B<const F: [fn(); 1]>;
Is this intentional, or should it also be forbidden?