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

ices/98250.sh: fixed with no errors #1573

Merged
merged 1 commit into from
May 1, 2023
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented May 1, 2023

Issue: rust-lang/rust#98250

#!/bin/bash

cat > out.rs <<'EOF'

#![feature(type_alias_impl_trait)]

type Foo = impl PartialEq<(Foo, i32)>;

struct Bar;

impl PartialEq<(Foo, i32)> for Bar {
//~^ ERROR cannot implement trait on type alias impl trait
    fn eq(&self, _other: &(Foo, i32)) -> bool {
        true
    }
}

fn foo() -> Foo {
    Bar
}

fn main() {}

EOF

rustdoc out.rs
=== stdout ===
=== stderr ===
==============

=== stdout ===
=== stderr ===
==============
@JohnTitor JohnTitor merged commit bc69eae into master May 1, 2023
@JohnTitor JohnTitor deleted the autofix/ices/98250.sh branch May 1, 2023 04:31
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