]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/issues/issue-56445-3.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / const-generics / issues / issue-56445-3.rs
1 // Regression test for https://github.com/rust-lang/rust/issues/56445#issuecomment-524494170
2 pub struct Memory<'rom> {
3     rom: &'rom [u8],
4     ram: [u8; Self::SIZE],
5     //~^ ERROR: generic `Self` types are currently not permitted in anonymous constants
6 }
7
8 impl<'rom> Memory<'rom> {
9     pub const SIZE: usize = 0x8000;
10 }
11
12 fn main() {}