2020-10-16 11:26:02 +00:00
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:19:18
|
2020-10-16 11:26:02 +00:00
|
|
|
|
|
|
|
|
LL | fn refs(p1: &Bad) -> &Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::use-self` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:19:27
|
2020-10-16 11:26:02 +00:00
|
|
|
|
|
|
|
|
LL | fn refs(p1: &Bad) -> &Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:23:33
|
2020-10-16 11:26:02 +00:00
|
|
|
|
|
|
|
|
LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:23:49
|
2020-10-16 11:26:02 +00:00
|
|
|
|
|
|
|
|
LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:27:26
|
2020-10-16 11:26:02 +00:00
|
|
|
|
|
|
|
|
LL | fn mut_refs(p1: &mut Bad) -> &mut Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:27:39
|
2020-10-16 11:26:02 +00:00
|
|
|
|
|
|
|
|
LL | fn mut_refs(p1: &mut Bad) -> &mut Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:31:24
|
2020-10-16 11:26:02 +00:00
|
|
|
|
|
|
|
|
LL | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:31:42
|
2020-10-16 11:26:02 +00:00
|
|
|
|
|
|
|
|
LL | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:33:16
|
2020-10-16 11:26:02 +00:00
|
|
|
|
|
|
|
|
LL | fn vals(_: Bad) -> Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:33:24
|
2020-10-16 11:26:02 +00:00
|
|
|
|
|
|
|
|
LL | fn vals(_: Bad) -> Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:34:9
|
2020-10-16 11:26:02 +00:00
|
|
|
|
|
2023-05-03 18:07:02 +00:00
|
|
|
LL | Bad
|
2020-10-16 11:26:02 +00:00
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
2020-01-09 23:56:16 +00:00
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:39:19
|
2020-01-09 23:56:16 +00:00
|
|
|
|
|
|
|
|
LL | type Output = Bad;
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
2020-10-16 11:26:02 +00:00
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:41:23
|
2020-01-09 23:56:16 +00:00
|
|
|
|
|
2020-10-16 11:26:02 +00:00
|
|
|
LL | fn mul(self, rhs: Bad) -> Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:41:31
|
2020-10-16 11:26:02 +00:00
|
|
|
|
|
|
|
|
LL | fn mul(self, rhs: Bad) -> Bad {
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
2020-01-09 23:56:16 +00:00
|
|
|
|
2022-10-26 16:10:40 +00:00
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:48:9
|
2022-10-26 16:10:40 +00:00
|
|
|
|
|
|
|
|
LL | Bad
|
|
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: unnecessary structure name repetition
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/use_self_trait.rs:145:13
|
2022-10-26 16:10:40 +00:00
|
|
|
|
|
|
|
|
LL | std::fmt::Error // Should lint
|
|
|
|
| ^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
|
|
|
error: aborting due to 16 previous errors
|
2020-01-09 23:56:16 +00:00
|
|
|
|