summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/auxiliary/const_generic_lib.rs
blob: 922f92d9feb71a44337bf4c5b948c1eaf44c77b1 (plain)
1
2
3
4
5
6
7
pub struct Struct<const N: usize>(pub [u8; N]);

pub type Alias = Struct<2>;

pub fn function(value: Struct<3>) -> u8 {
    value.0[0]
}