1 error: this `impl` can be derived
2 --> $DIR/derivable_impls.rs:18:1
4 LL | / impl std::default::Default for FooDefault<'_> {
5 LL | | fn default() -> Self {
13 = note: `-D clippy::derivable-impls` implied by `-D warnings`
14 = help: try annotating `FooDefault` with `#[derive(Default)]`
16 error: this `impl` can be derived
17 --> $DIR/derivable_impls.rs:39:1
19 LL | / impl std::default::Default for TupleDefault {
20 LL | | fn default() -> Self {
21 LL | | Self(false, 0, 0u64)
26 = help: try annotating `TupleDefault` with `#[derive(Default)]`
28 error: this `impl` can be derived
29 --> $DIR/derivable_impls.rs:91:1
31 LL | / impl Default for StrDefault<'_> {
32 LL | | fn default() -> Self {
38 = help: try annotating `StrDefault` with `#[derive(Default)]`
40 error: this `impl` can be derived
41 --> $DIR/derivable_impls.rs:117:1
43 LL | / impl Default for Y {
44 LL | | fn default() -> Self {
50 = help: try annotating `Y` with `#[derive(Default)]`
52 error: this `impl` can be derived
53 --> $DIR/derivable_impls.rs:156:1
55 LL | / impl Default for WithoutSelfCurly {
56 LL | | fn default() -> Self {
57 LL | | WithoutSelfCurly { a: false }
62 = help: try annotating `WithoutSelfCurly` with `#[derive(Default)]`
64 error: this `impl` can be derived
65 --> $DIR/derivable_impls.rs:164:1
67 LL | / impl Default for WithoutSelfParan {
68 LL | | fn default() -> Self {
69 LL | | WithoutSelfParan(false)
74 = help: try annotating `WithoutSelfParan` with `#[derive(Default)]`
76 error: this `impl` can be derived
77 --> $DIR/derivable_impls.rs:214:1
79 LL | / impl Default for RepeatDefault1 {
80 LL | | fn default() -> Self {
81 LL | | RepeatDefault1 { a: [0; 32] }
86 = help: try annotating `RepeatDefault1` with `#[derive(Default)]`
88 error: aborting due to 7 previous errors