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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
108 B
Rust
Raw Normal View History

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