1 error: unnecessary structure name repetition
2 --> $DIR/use_self.rs:20:21
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.rs:21:13
13 | ^^^ help: use the applicable keyword: `Self`
15 error: unnecessary structure name repetition
16 --> $DIR/use_self.rs:23:22
18 LL | fn test() -> Foo {
19 | ^^^ help: use the applicable keyword: `Self`
21 error: unnecessary structure name repetition
22 --> $DIR/use_self.rs:24:13
25 | ^^^^^^^^ help: use the applicable keyword: `Self`
27 error: unnecessary structure name repetition
28 --> $DIR/use_self.rs:29:25
30 LL | fn default() -> Foo {
31 | ^^^ help: use the applicable keyword: `Self`
33 error: unnecessary structure name repetition
34 --> $DIR/use_self.rs:30:13
37 | ^^^^^^^^ help: use the applicable keyword: `Self`
39 error: unnecessary structure name repetition
40 --> $DIR/use_self.rs:95:22
42 LL | fn refs(p1: &Bad) -> &Bad {
43 | ^^^ help: use the applicable keyword: `Self`
45 error: unnecessary structure name repetition
46 --> $DIR/use_self.rs:95:31
48 LL | fn refs(p1: &Bad) -> &Bad {
49 | ^^^ help: use the applicable keyword: `Self`
51 error: unnecessary structure name repetition
52 --> $DIR/use_self.rs:99:37
54 LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
55 | ^^^ help: use the applicable keyword: `Self`
57 error: unnecessary structure name repetition
58 --> $DIR/use_self.rs:99:53
60 LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
61 | ^^^ help: use the applicable keyword: `Self`
63 error: unnecessary structure name repetition
64 --> $DIR/use_self.rs:103:30
66 LL | fn mut_refs(p1: &mut Bad) -> &mut Bad {
67 | ^^^ help: use the applicable keyword: `Self`
69 error: unnecessary structure name repetition
70 --> $DIR/use_self.rs:103:43
72 LL | fn mut_refs(p1: &mut Bad) -> &mut Bad {
73 | ^^^ help: use the applicable keyword: `Self`
75 error: unnecessary structure name repetition
76 --> $DIR/use_self.rs:107:28
78 LL | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
79 | ^^^ help: use the applicable keyword: `Self`
81 error: unnecessary structure name repetition
82 --> $DIR/use_self.rs:107:46
84 LL | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
85 | ^^^ help: use the applicable keyword: `Self`
87 error: unnecessary structure name repetition
88 --> $DIR/use_self.rs:109:20
90 LL | fn vals(_: Bad) -> Bad {
91 | ^^^ help: use the applicable keyword: `Self`
93 error: unnecessary structure name repetition
94 --> $DIR/use_self.rs:109:28
96 LL | fn vals(_: Bad) -> Bad {
97 | ^^^ help: use the applicable keyword: `Self`
99 error: unnecessary structure name repetition
100 --> $DIR/use_self.rs:110:13
103 | ^^^^^^^^^^^^ help: use the applicable keyword: `Self`
105 error: unnecessary structure name repetition
106 --> $DIR/use_self.rs:115:23
108 LL | type Output = Bad;
109 | ^^^ help: use the applicable keyword: `Self`
111 error: unnecessary structure name repetition
112 --> $DIR/use_self.rs:117:27
114 LL | fn mul(self, rhs: Bad) -> Bad {
115 | ^^^ help: use the applicable keyword: `Self`
117 error: unnecessary structure name repetition
118 --> $DIR/use_self.rs:117:35
120 LL | fn mul(self, rhs: Bad) -> Bad {
121 | ^^^ help: use the applicable keyword: `Self`
123 error: unnecessary structure name repetition
124 --> $DIR/use_self.rs:209:56
126 LL | fn bad(foos: &[Self]) -> impl Iterator<Item = &Foo> {
127 | ^^^ help: use the applicable keyword: `Self`
129 error: unnecessary structure name repetition
130 --> $DIR/use_self.rs:224:13
133 | ^^ help: use the applicable keyword: `Self`
135 error: aborting due to 22 previous errors