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<'c> 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: you should consider adding a `Default` implementation for `FooGenerics<T>`
71 --> $DIR/new_without_default.rs:165:5
73 LL | / pub fn new() -> Self {
74 LL | | Self(Default::default())
80 LL | impl<T> Default for FooGenerics<T> {
81 LL | fn default() -> Self {
87 error: you should consider adding a `Default` implementation for `BarGenerics<T>`
88 --> $DIR/new_without_default.rs:172:5
90 LL | / pub fn new() -> Self {
91 LL | | Self(Default::default())
97 LL | impl<T: Copy> Default for BarGenerics<T> {
98 LL | fn default() -> Self {
104 error: aborting due to 6 previous errors