rust/tests/ui/const-generics/ice-68875.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
229 B
Rust
Raw Normal View History

2022-06-29 14:38:42 -05:00
//@ 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() {}