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

ices/69398.sh: fixed with no errors #1026

Merged
merged 1 commit into from
Dec 4, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Dec 4, 2021

Issue: rust-lang/rust#69398

rustc --emit=mir - << END

// check-pass

pub trait Foo {
    type Bar;
}

pub trait Broken {
    type Assoc;
    fn broken(&self) where Self::Assoc: Foo;
}

impl<T> Broken for T {
    type Assoc = ();
    fn broken(&self) where Self::Assoc: Foo {
        let _x: <Self::Assoc as Foo>::Bar;
    }
}

fn main() {
    let _m: &dyn Broken<Assoc=()> = &();
}

END



=== stdout ===
=== stderr ===
==============

=== stdout ===
=== stderr ===
==============
@Alexendoo Alexendoo merged commit d3d8bf2 into master Dec 4, 2021
@Alexendoo Alexendoo deleted the autofix/ices/69398.sh branch December 4, 2021 14:01
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