rustc/tests/ui/const-generics/issue-93647.rs
2023-09-14 08:56:40 +02:00

8 lines
139 B
Rust

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