Store impl_trait_fn inside OpaqueTyOrigin.
This commit is contained in:
parent
72b6f7049c
commit
8576ab45e4
13 changed files with 119 additions and 97 deletions
|
@ -173,7 +173,7 @@ fn check_opaque_type_parameter_valid(
|
|||
// fn foo<l0..'ln>() -> foo::<'static..'static>::Foo<'l0..'lm>.
|
||||
//
|
||||
// which would error here on all of the `'static` args.
|
||||
OpaqueTyOrigin::FnReturn | OpaqueTyOrigin::AsyncFn => return true,
|
||||
OpaqueTyOrigin::FnReturn(..) | OpaqueTyOrigin::AsyncFn(..) => return true,
|
||||
// Check these
|
||||
OpaqueTyOrigin::TyAlias => {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue