]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/generic_duplicate_lifetime_param.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[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 could not find defining uses
7
8 fn one<'a>(t: &'a ()) -> Two<'a, 'a> {
9     //~^ ERROR non-defining opaque type use
10     t
11 }