-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
I was debugging code like this:
trait ExtractFrom<'a> {
type Extracted;
}
fn sort_by_extractor<T>()
where
T: for<'a> ExtractFrom<'a>,
T::Extracted: Copy,
{
}And got this error:
error[E0212]: cannot extract an associated type from a higher-ranked trait bound in this context
--> src/lib.rs:8:5
|
8 | T::Extracted: Copy,
| ^^^^^^^^^^^^
However, 0212 is not documented in the error index.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints