]> git.lizzy.rs Git - rust.git/blob - tests/ui/new_without_default.stderr
Auto merge of #3645 - phansch:remove_copyright_headers, r=oli-obk
[rust.git] / tests / ui / new_without_default.stderr
1 error: you should consider deriving a `Default` implementation for `Foo`
2   --> $DIR/new_without_default.rs:8:5
3    |
4 LL | /     pub fn new() -> Foo {
5 LL | |         Foo
6 LL | |     }
7    | |_____^
8    |
9    = note: `-D clippy::new-without-default` implied by `-D warnings`
10 help: try this
11    |
12 LL | #[derive(Default)]
13    |
14
15 error: you should consider deriving a `Default` implementation for `Bar`
16   --> $DIR/new_without_default.rs:16:5
17    |
18 LL | /     pub fn new() -> Self {
19 LL | |         Bar
20 LL | |     }
21    | |_____^
22 help: try this
23    |
24 LL | #[derive(Default)]
25    |
26
27 error: you should consider adding a `Default` implementation for `LtKo<'c>`
28   --> $DIR/new_without_default.rs:80:5
29    |
30 LL | /     pub fn new() -> LtKo<'c> {
31 LL | |         unimplemented!()
32 LL | |     }
33    | |_____^
34 help: try this
35    |
36 LL | impl Default for LtKo<'c> {
37 LL |     fn default() -> Self {
38 LL |         Self::new()
39 LL |     }
40 LL | }
41    |
42
43 error: aborting due to 3 previous errors
44