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