]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/generic_duplicate_lifetime_param.rs
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / type-alias-impl-trait / generic_duplicate_lifetime_param.rs
1 #![feature(type_alias_impl_trait)]
2
3 fn main() {}
4
5 type Two<'a, 'b> = impl std::fmt::Debug;
6
7
8 fn one<'a>(t: &'a ()) -> Two<'a, 'a> {
9     t
10     //~^ ERROR non-defining opaque type use
11 }