-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Description
The following compiles after the stabilization of RPITIT/AFIT in #115822:
trait Trait {
type Gat<'a>;
async fn foo(&self) -> Self::Gat<'_>;
}
but it should require adding where Self: 'a
bound to Gat
similar to the non-async version (see #87479):
trait Trait {
type Gat<'a>;
//~^ ERROR missing required bound on `Gat`
//~| HELP add the required where clause: `where Self: 'a`
fn foo(&self) -> Self::Gat<'_>;
}
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.