]> git.lizzy.rs Git - rust.git/blob - tests/ui/new_without_default.stderr
Auto merge of #5522 - CrazyRoka:match_vec_item, r=phansch
[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    |
23 help: try this
24    |
25 LL | #[derive(Default)]
26    |
27
28 error: you should consider adding a `Default` implementation for `LtKo<'c>`
29   --> $DIR/new_without_default.rs:80:5
30    |
31 LL | /     pub fn new() -> LtKo<'c> {
32 LL | |         unimplemented!()
33 LL | |     }
34    | |_____^
35    |
36 help: try this
37    |
38 LL | impl Default for LtKo<'c> {
39 LL |     fn default() -> Self {
40 LL |         Self::new()
41 LL |     }
42 LL | }
43    |
44
45 error: aborting due to 3 previous errors
46