rust/tests/ui/missnamed_getters.stderr

65 lines
1.9 KiB
Plaintext
Raw Normal View History

2022-11-01 17:39:36 +00:00
error: getter function appears to return the wrong field
2022-11-01 18:07:51 +00:00
--> $DIR/missnamed_getters.rs:12:9
2022-11-01 17:39:36 +00:00
|
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
2022-11-01 18:07:51 +00:00
--> $DIR/missnamed_getters.rs:15:9
|
LL | &mut self.b
| ^^^^^^^^^^^ help: consider using: `&mut self.a`
error: getter function appears to return the wrong field
--> $DIR/missnamed_getters.rs:19:9
|
LL | self.a
| ^^^^^^ help: consider using: `self.b`
error: getter function appears to return the wrong field
--> $DIR/missnamed_getters.rs:23:9
|
LL | &mut self.a
| ^^^^^^^^^^^ help: consider using: `&mut self.b`
error: getter function appears to return the wrong field
--> $DIR/missnamed_getters.rs:27:9
|
LL | &self.b
| ^^^^^^^ help: consider using: `&self.c`
error: getter function appears to return the wrong field
--> $DIR/missnamed_getters.rs:31:9
|
LL | &mut self.a
| ^^^^^^^^^^^ help: consider using: `&mut self.c`
error: getter function appears to return the wrong field
--> $DIR/missnamed_getters.rs:42:9
2022-11-01 17:39:36 +00:00
|
LL | &self.b
| ^^^^^^^ help: consider using: `&self.a`
2022-11-01 18:07:51 +00:00
error: getter function appears to return the wrong field
--> $DIR/missnamed_getters.rs:45:9
|
LL | &mut self.b
| ^^^^^^^^^^^ help: consider using: `&mut self.a`
error: getter function appears to return the wrong field
--> $DIR/missnamed_getters.rs:49:9
|
LL | self.a
| ^^^^^^ help: consider using: `self.b`
error: getter function appears to return the wrong field
--> $DIR/missnamed_getters.rs:53:9
|
LL | &mut self.a
| ^^^^^^^^^^^ help: consider using: `&mut self.b`
error: aborting due to 10 previous errors
2022-11-01 17:39:36 +00:00