Skip to content

type keyword no generics example #114281

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

Closed
Ciubix8513 opened this issue Jul 31, 2023 · 0 comments · Fixed by #115053
Closed

type keyword no generics example #114281

Ciubix8513 opened this issue Jul 31, 2023 · 0 comments · Fixed by #115053
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools

Comments

@Ciubix8513
Copy link

Location

https://doc.rust-lang.org/stable/std/keyword.type.html

Summary

The docs don't provide an example of a type with a generic, for example:

type ArcMutex<T> = Arc<Mutex<T>>;

While it is fairly obvious, I think it'd be nice to have it documented.

@Ciubix8513 Ciubix8513 added the A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools label Jul 31, 2023
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jul 31, 2023
@Noratrieb Noratrieb added A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools and removed A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Aug 22, 2023
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Aug 23, 2023
…d-docs, r=cuviper

docs: Add example, reference link for `type` keyword.

Fixes rust-lang#114281.
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this issue Aug 23, 2023
…d-docs, r=cuviper

docs: Add example, reference link for `type` keyword.

Fixes rust-lang#114281.
@bors bors closed this as completed in 5324570 Aug 23, 2023
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants