blob: 5495e2e3733f00f6735201189fab02ca44159fea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
error: getter function appears to return the wrong field
--> tests/ui/misnamed_getters_2021.rs:15:5
|
LL | / unsafe fn a(&self) -> &u8 {
LL | |
LL | |
LL | | &self.b
| | ------- help: consider using: `&self.a`
LL | | }
| |_____^
|
= note: `-D clippy::misnamed-getters` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::misnamed_getters)]`
error: aborting due to 1 previous error
|