summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/issue-86465.rs
blob: 8c7b41d73b7c6cbf903f2c5dabcba80ca086b3e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(type_alias_impl_trait)]

pub trait Captures<'a> {}

impl<'a, T: ?Sized> Captures<'a> for T {}

type X<'a, 'b> = impl std::fmt::Debug + Captures<'a> + Captures<'b>;

fn f<'t, 'u>(a: &'t u32, b: &'u u32) -> (X<'t, 'u>, X<'u, 't>) {
    (a, a)
    //~^ ERROR concrete type differs from previous defining opaque type use
}

fn main() {}