1 error: unnecessary structure name repetition
2 --> $DIR/use_self.rs:14: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:15:13
13 | ^^^ help: use the applicable keyword: `Self`
15 error: unnecessary structure name repetition
16 --> $DIR/use_self.rs:17:22
18 LL | fn test() -> Foo {
19 | ^^^ help: use the applicable keyword: `Self`
21 error: unnecessary structure name repetition
22 --> $DIR/use_self.rs:18:13
25 | ^^^ help: use the applicable keyword: `Self`
27 error: unnecessary structure name repetition
28 --> $DIR/use_self.rs:23:25
30 LL | fn default() -> Foo {
31 | ^^^ help: use the applicable keyword: `Self`
33 error: unnecessary structure name repetition
34 --> $DIR/use_self.rs:24:13
37 | ^^^ help: use the applicable keyword: `Self`
39 error: unnecessary structure name repetition
40 --> $DIR/use_self.rs:89:56
42 LL | fn bad(foos: &[Self]) -> impl Iterator<Item = &Foo> {
43 | ^^^ help: use the applicable keyword: `Self`
45 error: unnecessary structure name repetition
46 --> $DIR/use_self.rs:104:13
49 | ^^ help: use the applicable keyword: `Self`
51 error: unnecessary structure name repetition
52 --> $DIR/use_self.rs:112:25
54 LL | fn new() -> Foo {
55 | ^^^ help: use the applicable keyword: `Self`
57 LL | use_self_expand!(); // Should lint in local macros
58 | ------------------- in this macro invocation
60 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
62 error: unnecessary structure name repetition
63 --> $DIR/use_self.rs:113:17
66 | ^^^ help: use the applicable keyword: `Self`
68 LL | use_self_expand!(); // Should lint in local macros
69 | ------------------- in this macro invocation
71 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
73 error: unnecessary structure name repetition
74 --> $DIR/use_self.rs:148:21
76 LL | fn baz() -> Foo {
77 | ^^^ help: use the applicable keyword: `Self`
79 error: unnecessary structure name repetition
80 --> $DIR/use_self.rs:149:13
83 | ^^^ help: use the applicable keyword: `Self`
85 error: unnecessary structure name repetition
86 --> $DIR/use_self.rs:136:29
88 LL | fn bar() -> Bar {
89 | ^^^ help: use the applicable keyword: `Self`
91 error: unnecessary structure name repetition
92 --> $DIR/use_self.rs:137:21
94 LL | Bar { foo: Foo {} }
95 | ^^^ help: use the applicable keyword: `Self`
97 error: unnecessary structure name repetition
98 --> $DIR/use_self.rs:166:21
100 LL | let _ = Enum::B(42);
101 | ^^^^ help: use the applicable keyword: `Self`
103 error: unnecessary structure name repetition
104 --> $DIR/use_self.rs:167:21
106 LL | let _ = Enum::C { field: true };
107 | ^^^^ help: use the applicable keyword: `Self`
109 error: unnecessary structure name repetition
110 --> $DIR/use_self.rs:168:21
112 LL | let _ = Enum::A;
113 | ^^^^ help: use the applicable keyword: `Self`
115 error: unnecessary structure name repetition
116 --> $DIR/use_self.rs:199:13
118 LL | nested::A::fun_1();
119 | ^^^^^^^^^ help: use the applicable keyword: `Self`
121 error: unnecessary structure name repetition
122 --> $DIR/use_self.rs:200:13
125 | ^^^^^^^^^ help: use the applicable keyword: `Self`
127 error: unnecessary structure name repetition
128 --> $DIR/use_self.rs:202:13
131 | ^^^^^^^^^ help: use the applicable keyword: `Self`
133 error: unnecessary structure name repetition
134 --> $DIR/use_self.rs:221:13
136 LL | TestStruct::from_something()
137 | ^^^^^^^^^^ help: use the applicable keyword: `Self`
139 error: unnecessary structure name repetition
140 --> $DIR/use_self.rs:235:25
142 LL | async fn g() -> S {
143 | ^ help: use the applicable keyword: `Self`
145 error: unnecessary structure name repetition
146 --> $DIR/use_self.rs:236:13
149 | ^ help: use the applicable keyword: `Self`
151 error: unnecessary structure name repetition
152 --> $DIR/use_self.rs:240:16
155 | ^ help: use the applicable keyword: `Self`
157 error: unnecessary structure name repetition
158 --> $DIR/use_self.rs:240:22
161 | ^ help: use the applicable keyword: `Self`
163 error: aborting due to 25 previous errors