Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/56445-3.rs: fixed with errors #578

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#56445

#![crate_type = "lib"]

pub struct Memory<'rom> {
    rom: &'rom [u8],
    ram: [u8; Self::SIZE],
}

impl<'rom> Memory<'rom> {
    pub const SIZE: usize = 0x8000;
}
=== stdout ===
=== stderr ===
error: generic `Self` types are currently not permitted in anonymous constants
 --> /home/runner/work/glacier/glacier/ices/56445-3.rs:5:15
  |
5 |     ram: [u8; Self::SIZE],
  |               ^^^^^^^^^^

error: aborting due to previous error

==============

=== stdout ===
=== stderr ===
error: generic `Self` types are currently not permitted in anonymous constants
 --> /home/runner/work/glacier/glacier/ices/56445-3.rs:5:15
  |
5 |     ram: [u8; Self::SIZE],
  |               ^^^^^^^^^^

error: aborting due to previous error

==============
@Alexendoo Alexendoo deleted the autofix/ices/56445-3.rs branch January 2, 2021 14:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants