blob: 5495e2e3733f00f6735201189fab02ca44159fea [file] [log] [blame]
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