mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-25 06:03:16 +00:00
17 lines
462 B
Plaintext
17 lines
462 B
Plaintext
|
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
|
||
|
|