rust/tests/ui/const-generics/issue-93647.rs
2023-01-11 09:32:08 +00:00

7 lines
108 B
Rust

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