-
Notifications
You must be signed in to change notification settings - Fork 14k
Open
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-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.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
Location
Concerns rustc --explain E0700, the Rust Book, and the Reference.
Summary
I originally asked this StackOverflow question and was advised to file a bug.
The new use keyword, apparently introduced in 1.82, is poorly documented. There are at least 3 documentation issues:
- The rust error E0700 tells you to
add aBut running this command only talks about the older syntax and doesn't mentionuse<...>bound to explicitly capture'_... For more information about this error, tryrustc --explain E0700.useat all. - The Rust Book doesn't mention this syntax at all, in stable or nightly, as far as I can tell.
- The Reference nightly edition mentions it in 10.1.16 and 10.6, but neither of these sections are included in the stable edition.
My specific questions about the syntax were answered by the announcement blog post, I just didn't know how to find it, because "rust use lifetime" is a pretty terrible set of keywords to google for.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-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.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.