-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
impl_trait_projections incorrectly triggers on async inherent method #110156
Copy link
Copy link
Closed
Labels
A-async-awaitArea: Async & AwaitArea: Async & AwaitAsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.Async-await issues that have been triaged during a working group meeting.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.
Metadata
Metadata
Assignees
Labels
A-async-awaitArea: Async & AwaitArea: Async & AwaitAsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.Async-await issues that have been triaged during a working group meeting.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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
I tried this code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=e7e126b11bc02ef4c8bc28e0d85e0cf0
I expected to see the code compile.
Instead, this happened:
Fails on nightly (apr 10), beta (1.69), stable (1.68).
Curiously, this code doesn't fail:
... nor does changing the return type to
<T as IntoBar<'_>>::Bar...