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

ices/56445-1.rs: fixed with errors #577

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#56445

struct OnDiskDirEntry<'a> { _s: &'a usize }

impl<'a> OnDiskDirEntry<'a> {
    const LFN_FRAGMENT_LEN: usize = 2;

    fn lfn_contents(&self) -> [char; Self::LFN_FRAGMENT_LEN] { loop { } }
}

fn main() {}
=== stdout ===
=== stderr ===
error: generic `Self` types are currently not permitted in anonymous constants
 --> /home/runner/work/glacier/glacier/ices/56445-1.rs:6:38
  |
6 |     fn lfn_contents(&self) -> [char; Self::LFN_FRAGMENT_LEN] { loop { } }
  |                                      ^^^^^^^^^^^^^^^^^^^^^^
  |
note: not a concrete type
 --> /home/runner/work/glacier/glacier/ices/56445-1.rs:3:10
  |
3 | impl<'a> OnDiskDirEntry<'a> {
  |          ^^^^^^^^^^^^^^^^^^

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-1.rs:6:38
  |
6 |     fn lfn_contents(&self) -> [char; Self::LFN_FRAGMENT_LEN] { loop { } }
  |                                      ^^^^^^^^^^^^^^^^^^^^^^
  |
note: not a concrete type
 --> /home/runner/work/glacier/glacier/ices/56445-1.rs:3:10
  |
3 | impl<'a> OnDiskDirEntry<'a> {
  |          ^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

==============
@Alexendoo Alexendoo deleted the autofix/ices/56445-1.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