summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/ice-68875.rs
blob: 2ef7cfdbe2735f51f58f0150cfeec25d5de2f24b (plain)
1
2
3
4
5
6
7
8
9
10
11
// check-fail

struct DataWrapper<'a> {
    data: &'a [u8; Self::SIZE], //~ ERROR generic `Self` types are currently not permitted in anonymous constants
}

impl DataWrapper<'_> {
    const SIZE: usize = 14;
}

pub fn main() {}