]> git.lizzy.rs Git - rust.git/blob - tests/ui/derivable_impls.stderr
Don't lint `if_same_then_else` with `if let` conditions
[rust.git] / tests / ui / derivable_impls.stderr
1 error: this `impl` can be derived
2   --> $DIR/derivable_impls.rs:18:1
3    |
4 LL | / impl std::default::Default for FooDefault<'_> {
5 LL | |     fn default() -> Self {
6 LL | |         Self {
7 LL | |             a: false,
8 ...  |
9 LL | |     }
10 LL | | }
11    | |_^
12    |
13    = note: `-D clippy::derivable-impls` implied by `-D warnings`
14    = help: try annotating `FooDefault` with `#[derive(Default)]`
15
16 error: this `impl` can be derived
17   --> $DIR/derivable_impls.rs:39:1
18    |
19 LL | / impl std::default::Default for TupleDefault {
20 LL | |     fn default() -> Self {
21 LL | |         Self(false, 0, 0u64)
22 LL | |     }
23 LL | | }
24    | |_^
25    |
26    = help: try annotating `TupleDefault` with `#[derive(Default)]`
27
28 error: this `impl` can be derived
29   --> $DIR/derivable_impls.rs:91:1
30    |
31 LL | / impl Default for StrDefault<'_> {
32 LL | |     fn default() -> Self {
33 LL | |         Self("")
34 LL | |     }
35 LL | | }
36    | |_^
37    |
38    = help: try annotating `StrDefault` with `#[derive(Default)]`
39
40 error: this `impl` can be derived
41   --> $DIR/derivable_impls.rs:117:1
42    |
43 LL | / impl Default for Y {
44 LL | |     fn default() -> Self {
45 LL | |         Self(mac!())
46 LL | |     }
47 LL | | }
48    | |_^
49    |
50    = help: try annotating `Y` with `#[derive(Default)]`
51
52 error: this `impl` can be derived
53   --> $DIR/derivable_impls.rs:156:1
54    |
55 LL | / impl Default for WithoutSelfCurly {
56 LL | |     fn default() -> Self {
57 LL | |         WithoutSelfCurly { a: false }
58 LL | |     }
59 LL | | }
60    | |_^
61    |
62    = help: try annotating `WithoutSelfCurly` with `#[derive(Default)]`
63
64 error: this `impl` can be derived
65   --> $DIR/derivable_impls.rs:164:1
66    |
67 LL | / impl Default for WithoutSelfParan {
68 LL | |     fn default() -> Self {
69 LL | |         WithoutSelfParan(false)
70 LL | |     }
71 LL | | }
72    | |_^
73    |
74    = help: try annotating `WithoutSelfParan` with `#[derive(Default)]`
75
76 error: this `impl` can be derived
77   --> $DIR/derivable_impls.rs:214:1
78    |
79 LL | / impl Default for RepeatDefault1 {
80 LL | |     fn default() -> Self {
81 LL | |         RepeatDefault1 { a: [0; 32] }
82 LL | |     }
83 LL | | }
84    | |_^
85    |
86    = help: try annotating `RepeatDefault1` with `#[derive(Default)]`
87
88 error: aborting due to 7 previous errors
89