rustc/tests/ui/const-generics/ice-68875.rs
2023-08-02 10:33:26 +02:00

12 lines
228 B
Rust

// 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() {}