]> git.lizzy.rs Git - rust.git/blob - tests/ui/new_without_default.stderr
Merge pull request #2984 from flip1995/single_char_pattern
[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:10:5
3    |
4 10 |     pub fn new() -> Foo { Foo }
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D new-without-default-derive` implied by `-D warnings`
8 help: try this
9    |
10 7  | #[derive(Default)]
11    |
12
13 error: you should consider deriving a `Default` implementation for `Bar`
14   --> $DIR/new_without_default.rs:16:5
15    |
16 16 |     pub fn new() -> Self { Bar }
17    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 help: try this
19    |
20 13 | #[derive(Default)]
21    |
22
23 error: you should consider adding a `Default` implementation for `LtKo<'c>`
24   --> $DIR/new_without_default.rs:64:5
25    |
26 64 |     pub fn new() -> LtKo<'c> { unimplemented!() }
27    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28    |
29    = note: `-D new-without-default` implied by `-D warnings`
30 help: try this
31    |
32 63 | impl Default for LtKo<'c> {
33 64 |     fn default() -> Self {
34 65 |         Self::new()
35 66 |     }
36 67 | }
37    |
38
39 error: aborting due to 3 previous errors
40