8 lines
137 B
Rust
8 lines
137 B
Rust
pub struct Struct<const N: usize>(pub [u8; N]);
|
|
|
|
pub type Alias = Struct<2>;
|
|
|
|
pub fn function(value: Struct<3>) -> u8 {
|
|
value.0[0]
|
|
}
|