1 error: unnecessary structure name repetition
2 --> $DIR/use_self.rs:23: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:24:13
13 | ^^^ help: use the applicable keyword: `Self`
15 error: unnecessary structure name repetition
16 --> $DIR/use_self.rs:26:22
18 LL | fn test() -> Foo {
19 | ^^^ help: use the applicable keyword: `Self`
21 error: unnecessary structure name repetition
22 --> $DIR/use_self.rs:27:13
25 | ^^^ help: use the applicable keyword: `Self`
27 error: unnecessary structure name repetition
28 --> $DIR/use_self.rs:32:25
30 LL | fn default() -> Foo {
31 | ^^^ help: use the applicable keyword: `Self`
33 error: unnecessary structure name repetition
34 --> $DIR/use_self.rs:33:13
37 | ^^^ help: use the applicable keyword: `Self`
39 error: unnecessary structure name repetition
40 --> $DIR/use_self.rs:98:24
42 LL | fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> {
43 | ^^^ help: use the applicable keyword: `Self`
45 error: unnecessary structure name repetition
46 --> $DIR/use_self.rs:98:55
48 LL | fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> {
49 | ^^^ help: use the applicable keyword: `Self`
51 error: unnecessary structure name repetition
52 --> $DIR/use_self.rs:113:13
55 | ^^ help: use the applicable keyword: `Self`
57 error: unnecessary structure name repetition
58 --> $DIR/use_self.rs:148:29
60 LL | fn bar() -> Bar {
61 | ^^^ help: use the applicable keyword: `Self`
63 error: unnecessary structure name repetition
64 --> $DIR/use_self.rs:149:21
66 LL | Bar { foo: Foo {} }
67 | ^^^ help: use the applicable keyword: `Self`
69 error: unnecessary structure name repetition
70 --> $DIR/use_self.rs:160:21
72 LL | fn baz() -> Foo {
73 | ^^^ help: use the applicable keyword: `Self`
75 error: unnecessary structure name repetition
76 --> $DIR/use_self.rs:161:13
79 | ^^^ help: use the applicable keyword: `Self`
81 error: unnecessary structure name repetition
82 --> $DIR/use_self.rs:178:21
84 LL | let _ = Enum::B(42);
85 | ^^^^ help: use the applicable keyword: `Self`
87 error: unnecessary structure name repetition
88 --> $DIR/use_self.rs:179:21
90 LL | let _ = Enum::C { field: true };
91 | ^^^^ help: use the applicable keyword: `Self`
93 error: unnecessary structure name repetition
94 --> $DIR/use_self.rs:180:21
97 | ^^^^ help: use the applicable keyword: `Self`
99 error: unnecessary structure name repetition
100 --> $DIR/use_self.rs:222:13
102 LL | nested::A::fun_1();
103 | ^^^^^^^^^ help: use the applicable keyword: `Self`
105 error: unnecessary structure name repetition
106 --> $DIR/use_self.rs:223:13
109 | ^^^^^^^^^ help: use the applicable keyword: `Self`
111 error: unnecessary structure name repetition
112 --> $DIR/use_self.rs:225:13
115 | ^^^^^^^^^ help: use the applicable keyword: `Self`
117 error: unnecessary structure name repetition
118 --> $DIR/use_self.rs:244:13
120 LL | TestStruct::from_something()
121 | ^^^^^^^^^^ help: use the applicable keyword: `Self`
123 error: unnecessary structure name repetition
124 --> $DIR/use_self.rs:258:25
126 LL | async fn g() -> S {
127 | ^ help: use the applicable keyword: `Self`
129 error: unnecessary structure name repetition
130 --> $DIR/use_self.rs:259:13
133 | ^ help: use the applicable keyword: `Self`
135 error: unnecessary structure name repetition
136 --> $DIR/use_self.rs:263:16
139 | ^ help: use the applicable keyword: `Self`
141 error: unnecessary structure name repetition
142 --> $DIR/use_self.rs:263:22
145 | ^ help: use the applicable keyword: `Self`
147 error: unnecessary structure name repetition
148 --> $DIR/use_self.rs:286:29
150 LL | fn foo(value: T) -> Foo<T> {
151 | ^^^^^^ help: use the applicable keyword: `Self`
153 error: unnecessary structure name repetition
154 --> $DIR/use_self.rs:287:13
156 LL | Foo::<T> { value }
157 | ^^^^^^^^ help: use the applicable keyword: `Self`
159 error: unnecessary structure name repetition
160 --> $DIR/use_self.rs:459:13
162 LL | A::new::<submod::B>(submod::B {})
163 | ^ help: use the applicable keyword: `Self`
165 error: unnecessary structure name repetition
166 --> $DIR/use_self.rs:496:13
169 | ^^ help: use the applicable keyword: `Self`
171 error: aborting due to 28 previous errors