mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-05 07:26:48 +00:00
14 lines
217 B
Rust
14 lines
217 B
Rust
#![allow(incomplete_features)]
|
|
#![feature(generic_const_exprs)]
|
|
|
|
pub struct Foo<const N: usize>;
|
|
|
|
impl<const N: usize> Foo<N>
|
|
where
|
|
[u8; N.div_ceil(8)]: Sized,
|
|
{
|
|
pub fn new() -> Self {
|
|
todo!()
|
|
}
|
|
}
|