Sized
trait should have #[doc(alias = "?")]
#101267
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
Summary
Typing
?
into the standard library’s search field shows aliased links to theTry
trait (and the oldtry!
macro), but there is no link to theSized
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.
The text was updated successfully, but these errors were encountered: