blob: a9a4a48ab6758d24b00273802cd753c8011a8445 [file]
// Regression test for https://github.com/rust-lang/rust/issues/56445#issuecomment-524494170
pub struct Memory<'rom> {
rom: &'rom [u8],
ram: [u8; Self::SIZE],
//~^ ERROR: generic `Self`
}
impl<'rom> Memory<'rom> {
pub const SIZE: usize = 0x8000;
}
fn main() {}