summary refs log tree commit diff
path: root/src/test/ui/const-generics/const_evaluatable_checked/closures.rs
blob: 32f43591e37b9d33f777aec73be281a5b187fa06 (plain)
1
2
3
4
5
6
#![feature(const_generics, const_evaluatable_checked)]
#![allow(incomplete_features)]
fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
//~^ ERROR overly complex generic constant

fn main() {}