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

7 lines
197 B
Rust

#![feature(generic_const_exprs)]
#![allow(incomplete_features)]
fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
//~^ ERROR cycle detected when building an abstract representation
fn main() {}