1 error: you should consider deriving a `Default` implementation for `Foo`
2 --> $DIR/new_without_default.rs:22:5
4 22 | pub fn new() -> Foo { Foo }
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::new-without-default-derive` implied by `-D warnings`
10 19 | #[derive(Default)]
13 error: you should consider deriving a `Default` implementation for `Bar`
14 --> $DIR/new_without_default.rs:28:5
16 28 | pub fn new() -> Self { Bar }
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 25 | #[derive(Default)]
23 error: you should consider adding a `Default` implementation for `LtKo<'c>`
24 --> $DIR/new_without_default.rs:76:5
26 76 | pub fn new() -> LtKo<'c> { unimplemented!() }
27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29 = note: `-D clippy::new-without-default` implied by `-D warnings`
32 75 | impl Default for LtKo<'c> {
33 76 | fn default() -> Self {
39 error: aborting due to 3 previous errors