summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-lifetimes.rs
blob: 3f122f1060956c28829605bf8d052059e7747ad4 (plain)
1
2
3
4
5
6
7
8
9
#![feature(type_alias_impl_trait)]

type Foo<'a, 'b> = impl std::fmt::Debug;

fn foo<'x, 'y>(i: &'x i32, j: &'y i32) -> (Foo<'x, 'y>, Foo<'y, 'x>) {
    (i, i) //~ ERROR concrete type differs from previous
}

fn main() {}