mirror of https://github.com/rust-lang/rust
10 lines
290 B
Rust
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() {}
|