1 error: you should consider deriving a `Default` implementation for `Foo`
2 --> 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`
11 error: you should consider deriving a `Default` implementation for `Bar`
12 --> new_without_default.rs:16:5
14 16 | pub fn new() -> Self { Bar }
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 = note: `-D new-without-default-derive` implied by `-D warnings`
21 error: you should consider adding a `Default` implementation for `LtKo<'c>`
22 --> new_without_default.rs:64:5
24 64 | pub fn new() -> LtKo<'c> { unimplemented!() }
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 = note: `-D new-without-default` implied by `-D warnings`
29 | impl Default for LtKo<'c> {
30 | fn default() -> Self {
37 error: aborting due to previous error(s)
39 error: Could not compile `clippy_tests`.
41 To learn more, run the command again with --verbose.