1 error: getter function appears to return the wrong field
2 --> $DIR/misnamed_getters.rs:11:5
4 LL | / fn a(&self) -> &u8 {
6 | | ------- help: consider using: `&self.a`
10 = note: `-D clippy::misnamed-getters` implied by `-D warnings`
12 error: getter function appears to return the wrong field
13 --> $DIR/misnamed_getters.rs:14:5
15 LL | / fn a_mut(&mut self) -> &mut u8 {
17 | | ----------- help: consider using: `&mut self.a`
21 error: getter function appears to return the wrong field
22 --> $DIR/misnamed_getters.rs:18:5
24 LL | / fn b(self) -> u8 {
26 | | ------ help: consider using: `self.b`
30 error: getter function appears to return the wrong field
31 --> $DIR/misnamed_getters.rs:22:5
33 LL | / fn b_mut(&mut self) -> &mut u8 {
35 | | ----------- help: consider using: `&mut self.b`
39 error: getter function appears to return the wrong field
40 --> $DIR/misnamed_getters.rs:26:5
42 LL | / fn c(&self) -> &u8 {
44 | | ------- help: consider using: `&self.c`
48 error: getter function appears to return the wrong field
49 --> $DIR/misnamed_getters.rs:30:5
51 LL | / fn c_mut(&mut self) -> &mut u8 {
53 | | ----------- help: consider using: `&mut self.c`
57 error: getter function appears to return the wrong field
58 --> $DIR/misnamed_getters.rs:41:5
60 LL | / unsafe fn a(&self) -> &u8 {
62 | | ------- help: consider using: `&self.a`
66 error: getter function appears to return the wrong field
67 --> $DIR/misnamed_getters.rs:44:5
69 LL | / unsafe fn a_mut(&mut self) -> &mut u8 {
71 | | ----------- help: consider using: `&mut self.a`
75 error: getter function appears to return the wrong field
76 --> $DIR/misnamed_getters.rs:48:5
78 LL | / unsafe fn b(self) -> u8 {
80 | | ------ help: consider using: `self.b`
84 error: getter function appears to return the wrong field
85 --> $DIR/misnamed_getters.rs:52:5
87 LL | / unsafe fn b_mut(&mut self) -> &mut u8 {
89 | | ----------- help: consider using: `&mut self.b`
93 error: getter function appears to return the wrong field
94 --> $DIR/misnamed_getters.rs:64:5
96 LL | / unsafe fn a_unchecked(&self) -> &u8 {
98 | | ------- help: consider using: `&self.a`
102 error: getter function appears to return the wrong field
103 --> $DIR/misnamed_getters.rs:67:5
105 LL | / unsafe fn a_unchecked_mut(&mut self) -> &mut u8 {
107 | | ----------- help: consider using: `&mut self.a`
111 error: getter function appears to return the wrong field
112 --> $DIR/misnamed_getters.rs:71:5
114 LL | / unsafe fn b_unchecked(self) -> u8 {
116 | | ------ help: consider using: `self.b`
120 error: getter function appears to return the wrong field
121 --> $DIR/misnamed_getters.rs:75:5
123 LL | / unsafe fn b_unchecked_mut(&mut self) -> &mut u8 {
125 | | ----------- help: consider using: `&mut self.b`
129 error: getter function appears to return the wrong field
130 --> $DIR/misnamed_getters.rs:107:5
132 LL | / fn a(&self) -> &u8 {
134 | | ------- help: consider using: `&self.a`
138 error: getter function appears to return the wrong field
139 --> $DIR/misnamed_getters.rs:110:5
141 LL | / fn a_mut(&mut self) -> &mut u8 {
143 | | ----------- help: consider using: `&mut self.a`
147 error: getter function appears to return the wrong field
148 --> $DIR/misnamed_getters.rs:114:5
150 LL | / fn d(&self) -> &u8 {
152 | | ------- help: consider using: `&self.d`
156 error: getter function appears to return the wrong field
157 --> $DIR/misnamed_getters.rs:117:5
159 LL | / fn d_mut(&mut self) -> &mut u8 {
161 | | ----------- help: consider using: `&mut self.d`
165 error: aborting due to 18 previous errors