1 error: you should consider adding a `Default` implementation for `Foo`
2 --> $DIR/new_without_default.rs:8:5
4 LL | / pub fn new() -> Foo {
9 = note: `-D clippy::new-without-default` implied by `-D warnings`
12 LL | impl Default for Foo {
13 LL | fn default() -> Self {
19 error: you should consider adding a `Default` implementation for `Bar`
20 --> $DIR/new_without_default.rs:16:5
22 LL | / pub fn new() -> Self {
29 LL | impl Default for Bar {
30 LL | fn default() -> Self {
36 error: you should consider adding a `Default` implementation for `LtKo<'c>`
37 --> $DIR/new_without_default.rs:80:5
39 LL | / pub fn new() -> LtKo<'c> {
40 LL | | unimplemented!()
46 LL | impl Default for LtKo<'c> {
47 LL | fn default() -> Self {
53 error: you should consider adding a `Default` implementation for `NewNotEqualToDerive`
54 --> $DIR/new_without_default.rs:157:5
56 LL | / pub fn new() -> Self {
57 LL | | NewNotEqualToDerive { foo: 1 }
63 LL | impl Default for NewNotEqualToDerive {
64 LL | fn default() -> Self {
70 error: aborting due to 4 previous errors