Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 0212 is missing from the error index #55523

Closed
shepmaster opened this issue Oct 31, 2018 · 3 comments
Closed

Error 0212 is missing from the error index #55523

shepmaster opened this issue Oct 31, 2018 · 3 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@shepmaster
Copy link
Member

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.

@shepmaster shepmaster added the A-diagnostics Area: Messages for errors, warnings, and lints label Oct 31, 2018
@zackmdavis
Copy link
Member

(subtask of #32777)

@shepmaster
Copy link
Member Author

@zackmdavis should I just close this, as it's probably not adding anything useful?

@varkor
Copy link
Member

varkor commented Nov 10, 2018

E0212 is on the list, so it's probably better just to use #32777 as the tracking issue for this code.

@varkor varkor closed this as completed Nov 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints
Projects
None yet
Development

No branches or pull requests

3 participants