1 error: you should consider adding a `Default` implementation for `Foo`
2 --> $DIR/new_without_default.rs:7: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:15: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:79: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:156: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:164: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:171: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: you should consider adding a `Default` implementation for `Foo<T>`
105 --> $DIR/new_without_default.rs:182:9
107 LL | / pub fn new() -> Self {
112 help: try adding this
114 LL ~ impl<T> Default for Foo<T> {
115 LL + fn default() -> Self {
122 error: aborting due to 7 previous errors