1 // Regression test for https://github.com/rust-lang/rust/issues/56445#issuecomment-524494170
2 pub struct Memory<'rom> {
5 //~^ ERROR: generic `Self` types are currently not permitted in anonymous constants
8 impl<'rom> Memory<'rom> {
9 pub const SIZE: usize = 0x8000;