mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
13 lines
336 B
Rust
13 lines
336 B
Rust
// 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() {}
|