rust/tests/rustdoc-ui/recursive-type-alias-impl-trait-declaration-too-subtle-2.rs
2024-09-09 22:35:10 +02:00

24 lines
338 B
Rust

// issue: rust-lang/rust#98250
//@ check-pass
#![feature(type_alias_impl_trait)]
mod foo {
pub type Foo = impl PartialEq<(Foo, i32)>;
fn foo() -> Foo {
super::Bar
}
}
use foo::Foo;
struct Bar;
impl PartialEq<(Foo, i32)> for Bar {
fn eq(&self, _other: &(Foo, i32)) -> bool {
true
}
}
fn main() {}