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
228 B
Rust
Raw Normal View History

2022-06-29 19:38:42 +00: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() {}