blob: 55b632a48f2e5e4687196ef13bdd6cbb71700bc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// edition:2018
pub fn extern_fn<const N: usize>() -> impl Iterator<Item = [u8; N]> {
[[0; N]; N].iter().copied()
}
pub struct ExternTy<const N: usize> {
pub inner: [u8; N],
}
pub type TyAlias<const N: usize> = ExternTy<N>;
pub trait WTrait<const N: usize, const M: usize> {
fn hey<const P: usize>() -> usize {
N + M + P
}
}
|