about summary refs log tree commit diff
path: root/tests/ui/type-alias-impl-trait/self-referential-2.rs
blob: d3effe817b846abb46bced42f5e1fb596f291589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
//@[next] check-pass
#![feature(type_alias_impl_trait)]

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

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

fn main() {}