about summary refs log tree commit diff
path: root/tests/ui/const-generics/ice-68875.rs
blob: cc9546be2c92168a427906015da4a6a8813ba033 (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() {}