]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/generic_const_exprs/closures.rs
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / generic_const_exprs / closures.rs
1 #![feature(generic_const_exprs)]
2 #![allow(incomplete_features)]
3 fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
4 //~^ ERROR overly complex generic constant
5
6 fn main() {}