]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/missing_lifetime_bound.rs
Rollup merge of #106766 - GuillaumeGomez:rm-stripper-dead-code, r=notriddle
[rust.git] / tests / ui / type-alias-impl-trait / missing_lifetime_bound.rs
1 #![feature(type_alias_impl_trait)]
2
3 type Opaque<'a, T> = impl Sized;
4 fn defining<'a, T>(x: &'a i32) -> Opaque<T> { x }
5 //~^ ERROR: hidden type for `Opaque<'a, T>` captures lifetime that does not appear in bounds
6
7 fn main() {}