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