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