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: lint level defined here
8 --> $DIR/new_without_default.rs:5:30
10 5 | #![deny(new_without_default, new_without_default_derive)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
16 error: you should consider deriving a `Default` implementation for `Bar`
17 --> $DIR/new_without_default.rs:16:5
19 16 | pub fn new() -> Self { Bar }
20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 error: you should consider adding a `Default` implementation for `LtKo<'c>`
27 --> $DIR/new_without_default.rs:64:5
29 64 | pub fn new() -> LtKo<'c> { unimplemented!() }
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32 note: lint level defined here
33 --> $DIR/new_without_default.rs:5:9
35 5 | #![deny(new_without_default, new_without_default_derive)]
38 | impl Default for LtKo<'c> {
39 | fn default() -> Self {
46 error: aborting due to 3 previous errors