blob: 26d63fdde993cf5e9c07ac9da645f3754f43cf9c [file] [log] [blame]
//@ compile-flags: -Znext-solver
#[derive(Debug)]
struct X<const FN: fn() = { || {} }>;
//~^ ERROR using function pointers as const generic parameters is forbidden
//~| ERROR using function pointers as const generic parameters is forbidden
//~| ERROR type annotations needed
fn main() {}