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