]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/generic_duplicate_lifetime_param.rs
Make the error for opaque types that have no hidden types a bit informative
[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 //~^ ERROR unconstrained opaque type
7
8 fn one<'a>(t: &'a ()) -> Two<'a, 'a> {
9     t
10     //~^ ERROR non-defining opaque type use
11 }