2021-08-27 11:04:57 -05:00
|
|
|
#![feature(generic_const_exprs)]
|
2020-09-10 01:52:02 -05:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
2021-05-27 15:42:07 -05:00
|
|
|
type Arr<const N: usize> = [u8; N - 1];
|
2022-07-18 18:25:14 -05:00
|
|
|
//~^ ERROR evaluation of `Arr::<0>::{constant#0}` failed
|
2020-09-10 01:52:02 -05:00
|
|
|
|
2022-07-18 18:25:14 -05:00
|
|
|
fn test<const N: usize>() -> Arr<N>
|
|
|
|
where
|
|
|
|
[u8; N - 1]: Sized,
|
|
|
|
//~^ ERROR evaluation of `test::<0>::{constant#0}` failed
|
|
|
|
{
|
2020-09-10 01:52:02 -05:00
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
test::<0>();
|
|
|
|
}
|