1 error: this `impl` can be derived
2 --> $DIR/derivable_impls.rs:22: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: remove the manual implementation...
15 help: ...and instead derive it
17 LL | #[derive(Default)]
20 error: this `impl` can be derived
21 --> $DIR/derivable_impls.rs:43:1
23 LL | / impl std::default::Default for TupleDefault {
24 LL | | fn default() -> Self {
25 LL | | Self(false, 0, 0u64)
30 = help: remove the manual implementation...
31 help: ...and instead derive it
33 LL | #[derive(Default)]
36 error: this `impl` can be derived
37 --> $DIR/derivable_impls.rs:95:1
39 LL | / impl Default for StrDefault<'_> {
40 LL | | fn default() -> Self {
46 = help: remove the manual implementation...
47 help: ...and instead derive it
49 LL | #[derive(Default)]
52 error: this `impl` can be derived
53 --> $DIR/derivable_impls.rs:121:1
55 LL | / impl Default for Y {
56 LL | | fn default() -> Self {
62 = help: remove the manual implementation...
63 help: ...and instead derive it
65 LL | #[derive(Default)]
68 error: this `impl` can be derived
69 --> $DIR/derivable_impls.rs:160:1
71 LL | / impl Default for WithoutSelfCurly {
72 LL | | fn default() -> Self {
73 LL | | WithoutSelfCurly { a: false }
78 = help: remove the manual implementation...
79 help: ...and instead derive it
81 LL | #[derive(Default)]
84 error: this `impl` can be derived
85 --> $DIR/derivable_impls.rs:168:1
87 LL | / impl Default for WithoutSelfParan {
88 LL | | fn default() -> Self {
89 LL | | WithoutSelfParan(false)
94 = help: remove the manual implementation...
95 help: ...and instead derive it
97 LL | #[derive(Default)]
100 error: this `impl` can be derived
101 --> $DIR/derivable_impls.rs:218:1
103 LL | / impl Default for RepeatDefault1 {
104 LL | | fn default() -> Self {
105 LL | | RepeatDefault1 { a: [0; 32] }
110 = help: remove the manual implementation...
111 help: ...and instead derive it
113 LL | #[derive(Default)]
116 error: aborting due to 7 previous errors