Skip to content

Sized trait should have #[doc(alias = "?")] #101267

Closed
@Zalathar

Description

@Zalathar

Summary

Typing ? into the standard library’s search field shows aliased links to the Try trait (and the old try! macro), but there is no link to the Sized trait, which frequently appears as ?Sized in generic type bounds.

This could be a way to lead some users towards the documentation for this unusual use of the question mark character in trait-bound syntax.

Inspired by this reddit comment, since it turns out that the current docs would not have helped that person find their answer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and tools

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions