summary refs log tree commit diff
path: root/src/test/ui/const-generics/generic_const_exprs/from-sig-fail.rs
blob: 90953145944fe7ba4689b2dcd796c46d7a1fb08e (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]

fn test<const N: usize>() -> [u8; N - 1] {
    //~^ ERROR evaluation of `test::<0_usize>::{constant#0}` failed
    todo!()
}

fn main() {
    test::<0>();
}