2 Checks for public types with a `pub fn new() -> Self` method and no
4 [`Default`](https://doc.rust-lang.org/std/default/trait.Default.html).
7 The user might expect to be able to use
8 [`Default`](https://doc.rust-lang.org/std/default/trait.Default.html) as the
9 type can be constructed without arguments.
16 pub fn new() -> Self {
22 To fix the lint, add a `Default` implementation that delegates to `new`:
27 impl Default for Foo {
28 fn default() -> Self {