2024-11-21 14:09:46 +01:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
#![feature(generic_const_exprs)]
|
|
|
|
|
|
2025-05-01 15:46:33 +01:00
|
|
|
pub struct Foo<const N: usize>;
|
2024-11-21 14:09:46 +01:00
|
|
|
|
2025-05-01 15:46:33 +01:00
|
|
|
impl<const N: usize> Foo<N>
|
2024-11-21 14:09:46 +01:00
|
|
|
where
|
|
|
|
|
[u8; N.div_ceil(8)]: Sized,
|
|
|
|
|
{
|
|
|
|
|
pub fn new() -> Self {
|
|
|
|
|
todo!()
|
|
|
|
|
}
|
|
|
|
|
}
|