type-alias-impl-trait with lifetime param can't be used in fn input #96564
Labels
A-borrow-checker
Area: The borrow checker
C-bug
Category: This is a bug.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=f758d0536248cf9a970114bf75257429
I expected to see this happen: program compiles
Instead, this happened:
Same code compiles if type params are used instead:
Meta
Nightly playground : 1.62.0-nightly (2022-04-28 e85edd9)
Backtrace
The text was updated successfully, but these errors were encountered: