blob: c29df14586e21c0d9e45e35833566127a09ac56f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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` types are currently not permitted in anonymous constants
}
impl<'rom> Memory<'rom> {
pub const SIZE: usize = 0x8000;
}
fn main() {}
|