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

ices/100550.sh: fixed with no errors #1401

Merged
merged 1 commit into from
Aug 27, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#100550

#!/bin/bash

rustc -Copt-level=2 --crate-type lib  - <<'EOF'

pub trait Trait {
    type Associated;
}
impl<T> Trait for T {
    type Associated = T;
}

pub struct Struct<T>(<T as Trait>::Associated);

pub fn foo<T>() -> Struct<T>
where
    T: Trait,
{
    bar()
}

#[inline]
fn bar<T>() -> Struct<T> {
    Struct(baz())
}

fn baz<T>() -> T {
    unimplemented!()
}

EOF

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

=== stdout ===
=== stderr ===
==============
@JohnTitor JohnTitor merged commit 7ae9495 into master Aug 27, 2022
@JohnTitor JohnTitor deleted the autofix/ices/100550.sh branch August 27, 2022 07:48
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