1 error: unnecessary structure name repetition
2 --> $DIR/use_self_trait.rs:21:18
4 LL | fn refs(p1: &Bad) -> &Bad {
5 | ^^^ help: use the applicable keyword: `Self`
7 = note: `-D clippy::use-self` implied by `-D warnings`
9 error: unnecessary structure name repetition
10 --> $DIR/use_self_trait.rs:21:27
12 LL | fn refs(p1: &Bad) -> &Bad {
13 | ^^^ help: use the applicable keyword: `Self`
15 error: unnecessary structure name repetition
16 --> $DIR/use_self_trait.rs:25:33
18 LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
19 | ^^^ help: use the applicable keyword: `Self`
21 error: unnecessary structure name repetition
22 --> $DIR/use_self_trait.rs:25:49
24 LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
25 | ^^^ help: use the applicable keyword: `Self`
27 error: unnecessary structure name repetition
28 --> $DIR/use_self_trait.rs:29:26
30 LL | fn mut_refs(p1: &mut Bad) -> &mut Bad {
31 | ^^^ help: use the applicable keyword: `Self`
33 error: unnecessary structure name repetition
34 --> $DIR/use_self_trait.rs:29:39
36 LL | fn mut_refs(p1: &mut Bad) -> &mut Bad {
37 | ^^^ help: use the applicable keyword: `Self`
39 error: unnecessary structure name repetition
40 --> $DIR/use_self_trait.rs:33:24
42 LL | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
43 | ^^^ help: use the applicable keyword: `Self`
45 error: unnecessary structure name repetition
46 --> $DIR/use_self_trait.rs:33:42
48 LL | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
49 | ^^^ help: use the applicable keyword: `Self`
51 error: unnecessary structure name repetition
52 --> $DIR/use_self_trait.rs:35:16
54 LL | fn vals(_: Bad) -> Bad {
55 | ^^^ help: use the applicable keyword: `Self`
57 error: unnecessary structure name repetition
58 --> $DIR/use_self_trait.rs:35:24
60 LL | fn vals(_: Bad) -> Bad {
61 | ^^^ help: use the applicable keyword: `Self`
63 error: unnecessary structure name repetition
64 --> $DIR/use_self_trait.rs:36:9
67 | ^^^ help: use the applicable keyword: `Self`
69 error: unnecessary structure name repetition
70 --> $DIR/use_self_trait.rs:41:19
72 LL | type Output = Bad;
73 | ^^^ help: use the applicable keyword: `Self`
75 error: unnecessary structure name repetition
76 --> $DIR/use_self_trait.rs:43:23
78 LL | fn mul(self, rhs: Bad) -> Bad {
79 | ^^^ help: use the applicable keyword: `Self`
81 error: unnecessary structure name repetition
82 --> $DIR/use_self_trait.rs:43:31
84 LL | fn mul(self, rhs: Bad) -> Bad {
85 | ^^^ help: use the applicable keyword: `Self`
87 error: aborting due to 14 previous errors