/// bar: bool
/// }
///
- /// impl std::default::Default for Foo {
+ /// impl Default for Foo {
/// fn default() -> Self {
/// Self {
/// bar: false
/// }
/// ```
///
- /// Could be written as:
- ///
+ /// Use instead:
/// ```rust
/// #[derive(Default)]
/// struct Foo {
/// specialized than what derive will produce. This lint can't detect the manual `impl`
/// has exactly equal bounds, and therefore this lint is disabled for types with
/// generic parameters.
- ///
#[clippy::version = "1.57.0"]
pub DERIVABLE_IMPLS,
complexity,