Simplify insert_outlives_predicate opaque type logic

This commit is contained in:
Oli Scherer 2022-06-21 15:42:25 +00:00
parent 615c9e8647
commit 20d962cfa5
2 changed files with 23 additions and 31 deletions

View file

@ -0,0 +1,8 @@
// check-pass
#![feature(type_alias_impl_trait)]
type Opaque<T> = impl Sized;
fn defining<T>() -> Opaque<T> {}
struct Ss<'a, T>(&'a Opaque<T>);
fn main() {}