Rustdoc: the Sized
bound on traits isn't shown
#82581
Labels
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
rustdoc
doesn't show that some traits require the type to be sized, which can get a bit misleading.For example, the docs for
std::default::Default
(https://doc.rust-lang.org/std/default/trait.Default.html) showWhile in reality it is actually
When looking at a trait definition,
rust
assumes that the type the trait will be implemented for is?Sized
, so droppingSized
is incorrect.The text was updated successfully, but these errors were encountered: