rust/tests/ui/const-generics/issue-93647.rs
2023-07-27 15:51:02 +00:00

7 lines
108 B
Rust

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