rust/tests/ui/traits/next-solver/canonical/const-region-infer-to-static-in-binder.rs

10 lines
290 B
Rust

//@ 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() {}