-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-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.
Description
Given the following code: [playground]
pub trait Pack<'a> {
fn pack()
where
Self: for<'x> Pack<'x>;
}
The current output is:
error[E0283]: type annotations needed
|
= note: cannot satisfy `Self: Pack<'a>`
This should at least point at the Self: for<'x> Pack<'x>
bound.
Ideally, this should work. (It's unclear why it shouldn't, given other where Self:
work fine.)
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-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.