]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/derivable_impls.stderr
Auto merge of #102536 - scottmcm:lookup_line-tweak, r=jackh726
[rust.git] / src / tools / clippy / tests / ui / derivable_impls.stderr
1 error: this `impl` can be derived
2   --> $DIR/derivable_impls.rs:22: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: remove the manual implementation...
15 help: ...and instead derive it
16    |
17 LL | #[derive(Default)]
18    |
19
20 error: this `impl` can be derived
21   --> $DIR/derivable_impls.rs:43:1
22    |
23 LL | / impl std::default::Default for TupleDefault {
24 LL | |     fn default() -> Self {
25 LL | |         Self(false, 0, 0u64)
26 LL | |     }
27 LL | | }
28    | |_^
29    |
30    = help: remove the manual implementation...
31 help: ...and instead derive it
32    |
33 LL | #[derive(Default)]
34    |
35
36 error: this `impl` can be derived
37   --> $DIR/derivable_impls.rs:95:1
38    |
39 LL | / impl Default for StrDefault<'_> {
40 LL | |     fn default() -> Self {
41 LL | |         Self("")
42 LL | |     }
43 LL | | }
44    | |_^
45    |
46    = help: remove the manual implementation...
47 help: ...and instead derive it
48    |
49 LL | #[derive(Default)]
50    |
51
52 error: this `impl` can be derived
53   --> $DIR/derivable_impls.rs:121:1
54    |
55 LL | / impl Default for Y {
56 LL | |     fn default() -> Self {
57 LL | |         Self(mac!())
58 LL | |     }
59 LL | | }
60    | |_^
61    |
62    = help: remove the manual implementation...
63 help: ...and instead derive it
64    |
65 LL | #[derive(Default)]
66    |
67
68 error: this `impl` can be derived
69   --> $DIR/derivable_impls.rs:160:1
70    |
71 LL | / impl Default for WithoutSelfCurly {
72 LL | |     fn default() -> Self {
73 LL | |         WithoutSelfCurly { a: false }
74 LL | |     }
75 LL | | }
76    | |_^
77    |
78    = help: remove the manual implementation...
79 help: ...and instead derive it
80    |
81 LL | #[derive(Default)]
82    |
83
84 error: this `impl` can be derived
85   --> $DIR/derivable_impls.rs:168:1
86    |
87 LL | / impl Default for WithoutSelfParan {
88 LL | |     fn default() -> Self {
89 LL | |         WithoutSelfParan(false)
90 LL | |     }
91 LL | | }
92    | |_^
93    |
94    = help: remove the manual implementation...
95 help: ...and instead derive it
96    |
97 LL | #[derive(Default)]
98    |
99
100 error: this `impl` can be derived
101   --> $DIR/derivable_impls.rs:218:1
102    |
103 LL | / impl Default for RepeatDefault1 {
104 LL | |     fn default() -> Self {
105 LL | |         RepeatDefault1 { a: [0; 32] }
106 LL | |     }
107 LL | | }
108    | |_^
109    |
110    = help: remove the manual implementation...
111 help: ...and instead derive it
112    |
113 LL | #[derive(Default)]
114    |
115
116 error: aborting due to 7 previous errors
117