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 message references non-existent Rust version #43780

Closed
sophiajt opened this issue Aug 10, 2017 · 3 comments
Closed

Error message references non-existent Rust version #43780

sophiajt opened this issue Aug 10, 2017 · 3 comments
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@sophiajt
Copy link
Contributor

The text for https://doc.rust-lang.org/error-index.html#E0106 references a non-existent Rust version.

"Here's an example that is currently an error, but may work in a future version of Rust:"

This isn't really helpful for understanding the error, and isn't that helpful of a predictor of Rust's future.

Reported by https://twitter.com/xernobyl/status/895450156627238912

@durka
Copy link
Contributor

durka commented Aug 10, 2017

The text after the example

Lifetime elision in implementation headers was part of the lifetime elision RFC. It is, however, currently unimplemented.

is instructive. In theory, if you read the RFC, then you'd expect that code to work.

@Mark-Simulacrum Mark-Simulacrum added C-enhancement Category: An issue proposing an enhancement or a PR with one. A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools labels Aug 10, 2017
@sophiajt
Copy link
Contributor Author

@durka - we shouldn't reference non-existent versions of Rust in our error codes. It's confusing (as pointed to by the link I shared).

It's fine to talk about them in other RFCs, but not anything a new user might encounter.

@frewsxcv
Copy link
Member

Opened a PR for this: #45585

kennytm added a commit to kennytm/rust that referenced this issue Oct 28, 2017
…nytm

Remove 'future Rust version' code block in diagnostic text.

Fixes rust-lang#43780.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

4 participants