summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/generic_duplicate_lifetime_param.rs
blob: 169d4f8d509419c7402ff65bf6870d4c26802782 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(type_alias_impl_trait)]

fn main() {}

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

fn one<'a>(t: &'a ()) -> Two<'a, 'a> {
    //~^ ERROR non-defining opaque type use
    t
    //~^ ERROR non-defining opaque type use
}