Add a help if implicitly required Sized
bounds can be relaxed.
#71790
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Currently errors with
This seems to cause at least some confusion (see #71788)
When adding the "help: the trait
std::marker::Sized
is not implemented forSelf
",we can check if the implicit
Sized
bound is required forSelf
and if not, add"help: consider relaxing this trait bound" and recommend adding
?Sized
toT
.The text was updated successfully, but these errors were encountered: