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

ices/70121.rs: fixed with no errors #381

Merged
merged 1 commit into from
May 25, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#70121

#![feature(type_alias_impl_trait)]
#![allow(private_in_public)]

pub type Successors<'a> = impl Iterator<Item = &'a ()>;

pub fn f<'a>() -> Successors<'a> {
    None.into_iter()
}

trait Tr {
    type Item;
}

impl<'a> Tr for &'a () {
    type Item = Successors<'a>;
}

pub fn ohno<'a>() -> <&'a () as Tr>::Item {
    None.into_iter()
}

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

=== stdout ===
=== stderr ===
==============
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment on the issue.

@JohnTitor JohnTitor merged commit e6cadaf into master May 25, 2020
@JohnTitor JohnTitor deleted the autofix/ices/70121.rs branch May 25, 2020 12:22
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.

None yet

2 participants