blob: 899a5a1836c338d349c78d6537146a295d0fc345 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![cfg_attr(full, feature(const_generics))]
#![cfg_attr(full, allow(incomplete_features))]
#![cfg_attr(min, feature(min_const_generics))]
pub struct Struct<const N: usize>(pub [u8; N]);
pub type Alias = Struct<2>;
pub fn function(value: Struct<3>) -> u8 {
value.0[0]
}
|