rust/tests/ui/missnamed_getters.stderr

17 lines
462 B
Plaintext
Raw Normal View History

2022-11-01 17:39:36 +00:00
error: getter function appears to return the wrong field
--> $DIR/missnamed_getters.rs:11:9
|
LL | &self.b
| ^^^^^^^ help: consider using: `&self.a`
|
= note: `-D clippy::missnamed-getters` implied by `-D warnings`
error: getter function appears to return the wrong field
--> $DIR/missnamed_getters.rs:22:9
|
LL | &self.b
| ^^^^^^^ help: consider using: `&self.a`
error: aborting due to 2 previous errors