]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/generic_const_exprs/from-sig-fail.rs
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / generic_const_exprs / from-sig-fail.rs
1 #![feature(generic_const_exprs)]
2 #![allow(incomplete_features)]
3
4 fn test<const N: usize>() -> [u8; N - 1] {
5     //~^ ERROR evaluation of `test::<0_usize>::{constant#0}` failed
6     todo!()
7 }
8
9 fn main() {
10     test::<0>();
11 }