summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-alias-impl-trait/self-referential-2.rs
blob: 8781196c39fa1366c63dc22f4e1930be5fbe591d (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(type_alias_impl_trait)]

type Foo = impl std::fmt::Debug;
type Bar = impl PartialEq<Foo>;

fn bar() -> Bar {
    42_i32 //~^ ERROR can't compare `i32` with `Foo`
}

fn main() {}