return_position_impl_trait_in_trait can not express static lifetime bound #117210
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
F-return_position_impl_trait_in_trait
`#![feature(return_position_impl_trait_in_trait)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Code
I tried this code:
I expected to see this happen: compiled successfully
Instead, this happened: compiled with error
Version it worked on
It worked on nightly-2023-06-12 (at least, not the most recent one).
Version with regression
I'm testing in recent nightly 2023-10-21
Other info
I'm updating my project's nightly version and find it not work. I'm not sure if it's a real regression or if the return_position_impl_trait_in_trait's design has been changed.
Intuitively, I thought the above example should as the same as this one which works fine:
The text was updated successfully, but these errors were encountered: