rust/tests/ui/const-generics/issue-93647.rs

7 lines
108 B
Rust

struct X<const N: usize = {
(||1usize)()
//~^ ERROR cannot call non-const closure
}>;
fn main() {}