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

ices/91633.rs: fixed with no errors #1391

Merged
merged 1 commit into from
Aug 20, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#91633

use std::ops::Index;

pub struct Handle(u64);

impl<T> Index<Handle> for [T] where Self: Index<usize> {
    type Output = <Self as Index<usize>>::Output;

    fn index(&self, index: Handle) -> &Self::Output {
        &self[index.0 as usize]
    }
}

pub fn main() {}
=== stdout ===
=== stderr ===
==============

=== stdout ===
=== stderr ===
==============
@JohnTitor JohnTitor merged commit f7cfc63 into master Aug 20, 2022
@JohnTitor JohnTitor deleted the autofix/ices/91633.rs branch August 20, 2022 08:45
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