]> git.lizzy.rs Git - rust.git/blob - tests/ui/new_without_default.stderr
Adapt the *.stderr files of the ui-tests to the tool_lints
[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:12:5
3    |
4 12 |     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 9  | #[derive(Default)]
11    |
12
13 error: you should consider deriving a `Default` implementation for `Bar`
14   --> $DIR/new_without_default.rs:18:5
15    |
16 18 |     pub fn new() -> Self { Bar }
17    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 help: try this
19    |
20 15 | #[derive(Default)]
21    |
22
23 error: you should consider adding a `Default` implementation for `LtKo<'c>`
24   --> $DIR/new_without_default.rs:66:5
25    |
26 66 |     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 65 | impl Default for LtKo<'c> {
33 66 |     fn default() -> Self {
34 67 |         Self::new()
35 68 |     }
36 69 | }
37    |
38
39 error: aborting due to 3 previous errors
40