|
1 | 1 | error: getter function appears to return the wrong field |
2 | | - --> $DIR/missnamed_getters.rs:11:9 |
| 2 | + --> $DIR/missnamed_getters.rs:12:9 |
3 | 3 | | |
4 | 4 | LL | &self.b |
5 | 5 | | ^^^^^^^ help: consider using: `&self.a` |
6 | 6 | | |
7 | 7 | = note: `-D clippy::missnamed-getters` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: getter function appears to return the wrong field |
10 | | - --> $DIR/missnamed_getters.rs:22:9 |
| 10 | + --> $DIR/missnamed_getters.rs:15:9 |
| 11 | + | |
| 12 | +LL | &mut self.b |
| 13 | + | ^^^^^^^^^^^ help: consider using: `&mut self.a` |
| 14 | + |
| 15 | +error: getter function appears to return the wrong field |
| 16 | + --> $DIR/missnamed_getters.rs:19:9 |
| 17 | + | |
| 18 | +LL | self.a |
| 19 | + | ^^^^^^ help: consider using: `self.b` |
| 20 | + |
| 21 | +error: getter function appears to return the wrong field |
| 22 | + --> $DIR/missnamed_getters.rs:23:9 |
| 23 | + | |
| 24 | +LL | &mut self.a |
| 25 | + | ^^^^^^^^^^^ help: consider using: `&mut self.b` |
| 26 | + |
| 27 | +error: getter function appears to return the wrong field |
| 28 | + --> $DIR/missnamed_getters.rs:27:9 |
| 29 | + | |
| 30 | +LL | &self.b |
| 31 | + | ^^^^^^^ help: consider using: `&self.c` |
| 32 | + |
| 33 | +error: getter function appears to return the wrong field |
| 34 | + --> $DIR/missnamed_getters.rs:31:9 |
| 35 | + | |
| 36 | +LL | &mut self.a |
| 37 | + | ^^^^^^^^^^^ help: consider using: `&mut self.c` |
| 38 | + |
| 39 | +error: getter function appears to return the wrong field |
| 40 | + --> $DIR/missnamed_getters.rs:42:9 |
11 | 41 | | |
12 | 42 | LL | &self.b |
13 | 43 | | ^^^^^^^ help: consider using: `&self.a` |
14 | 44 |
|
15 | | -error: aborting due to 2 previous errors |
| 45 | +error: getter function appears to return the wrong field |
| 46 | + --> $DIR/missnamed_getters.rs:45:9 |
| 47 | + | |
| 48 | +LL | &mut self.b |
| 49 | + | ^^^^^^^^^^^ help: consider using: `&mut self.a` |
| 50 | + |
| 51 | +error: getter function appears to return the wrong field |
| 52 | + --> $DIR/missnamed_getters.rs:49:9 |
| 53 | + | |
| 54 | +LL | self.a |
| 55 | + | ^^^^^^ help: consider using: `self.b` |
| 56 | + |
| 57 | +error: getter function appears to return the wrong field |
| 58 | + --> $DIR/missnamed_getters.rs:53:9 |
| 59 | + | |
| 60 | +LL | &mut self.a |
| 61 | + | ^^^^^^^^^^^ help: consider using: `&mut self.b` |
| 62 | + |
| 63 | +error: aborting due to 10 previous errors |
16 | 64 |
|
0 commit comments