]> git.lizzy.rs Git - rust.git/blob - tests/ui/use_self.stderr
Auto merge of #5034 - ThibsG:MatchWildErrArmImprove5024, r=flip1995
[rust.git] / tests / ui / use_self.stderr
1 error: unnecessary structure name repetition
2   --> $DIR/use_self.rs:14:21
3    |
4 LL |         fn new() -> Foo {
5    |                     ^^^ help: use the applicable keyword: `Self`
6    |
7    = note: `-D clippy::use-self` implied by `-D warnings`
8
9 error: unnecessary structure name repetition
10   --> $DIR/use_self.rs:15:13
11    |
12 LL |             Foo {}
13    |             ^^^ help: use the applicable keyword: `Self`
14
15 error: unnecessary structure name repetition
16   --> $DIR/use_self.rs:17:22
17    |
18 LL |         fn test() -> Foo {
19    |                      ^^^ help: use the applicable keyword: `Self`
20
21 error: unnecessary structure name repetition
22   --> $DIR/use_self.rs:18:13
23    |
24 LL |             Foo::new()
25    |             ^^^ help: use the applicable keyword: `Self`
26
27 error: unnecessary structure name repetition
28   --> $DIR/use_self.rs:23:25
29    |
30 LL |         fn default() -> Foo {
31    |                         ^^^ help: use the applicable keyword: `Self`
32
33 error: unnecessary structure name repetition
34   --> $DIR/use_self.rs:24:13
35    |
36 LL |             Foo::new()
37    |             ^^^ help: use the applicable keyword: `Self`
38
39 error: unnecessary structure name repetition
40   --> $DIR/use_self.rs:89:56
41    |
42 LL |         fn bad(foos: &[Self]) -> impl Iterator<Item = &Foo> {
43    |                                                        ^^^ help: use the applicable keyword: `Self`
44
45 error: unnecessary structure name repetition
46   --> $DIR/use_self.rs:104:13
47    |
48 LL |             TS(0)
49    |             ^^ help: use the applicable keyword: `Self`
50
51 error: unnecessary structure name repetition
52   --> $DIR/use_self.rs:112:25
53    |
54 LL |             fn new() -> Foo {
55    |                         ^^^ help: use the applicable keyword: `Self`
56 ...
57 LL |         use_self_expand!(); // Should lint in local macros
58    |         ------------------- in this macro invocation
59
60 error: unnecessary structure name repetition
61   --> $DIR/use_self.rs:113:17
62    |
63 LL |                 Foo {}
64    |                 ^^^ help: use the applicable keyword: `Self`
65 ...
66 LL |         use_self_expand!(); // Should lint in local macros
67    |         ------------------- in this macro invocation
68
69 error: unnecessary structure name repetition
70   --> $DIR/use_self.rs:148:21
71    |
72 LL |         fn baz() -> Foo {
73    |                     ^^^ help: use the applicable keyword: `Self`
74
75 error: unnecessary structure name repetition
76   --> $DIR/use_self.rs:149:13
77    |
78 LL |             Foo {}
79    |             ^^^ help: use the applicable keyword: `Self`
80
81 error: unnecessary structure name repetition
82   --> $DIR/use_self.rs:136:29
83    |
84 LL |                 fn bar() -> Bar {
85    |                             ^^^ help: use the applicable keyword: `Self`
86
87 error: unnecessary structure name repetition
88   --> $DIR/use_self.rs:137:21
89    |
90 LL |                     Bar { foo: Foo {} }
91    |                     ^^^ help: use the applicable keyword: `Self`
92
93 error: unnecessary structure name repetition
94   --> $DIR/use_self.rs:166:21
95    |
96 LL |             let _ = Enum::B(42);
97    |                     ^^^^ help: use the applicable keyword: `Self`
98
99 error: unnecessary structure name repetition
100   --> $DIR/use_self.rs:167:21
101    |
102 LL |             let _ = Enum::C { field: true };
103    |                     ^^^^ help: use the applicable keyword: `Self`
104
105 error: unnecessary structure name repetition
106   --> $DIR/use_self.rs:168:21
107    |
108 LL |             let _ = Enum::A;
109    |                     ^^^^ help: use the applicable keyword: `Self`
110
111 error: unnecessary structure name repetition
112   --> $DIR/use_self.rs:199:13
113    |
114 LL |             nested::A::fun_1();
115    |             ^^^^^^^^^ help: use the applicable keyword: `Self`
116
117 error: unnecessary structure name repetition
118   --> $DIR/use_self.rs:200:13
119    |
120 LL |             nested::A::A;
121    |             ^^^^^^^^^ help: use the applicable keyword: `Self`
122
123 error: unnecessary structure name repetition
124   --> $DIR/use_self.rs:202:13
125    |
126 LL |             nested::A {};
127    |             ^^^^^^^^^ help: use the applicable keyword: `Self`
128
129 error: unnecessary structure name repetition
130   --> $DIR/use_self.rs:221:13
131    |
132 LL |             TestStruct::from_something()
133    |             ^^^^^^^^^^ help: use the applicable keyword: `Self`
134
135 error: unnecessary structure name repetition
136   --> $DIR/use_self.rs:235:25
137    |
138 LL |         async fn g() -> S {
139    |                         ^ help: use the applicable keyword: `Self`
140
141 error: unnecessary structure name repetition
142   --> $DIR/use_self.rs:236:13
143    |
144 LL |             S {}
145    |             ^ help: use the applicable keyword: `Self`
146
147 error: unnecessary structure name repetition
148   --> $DIR/use_self.rs:240:16
149    |
150 LL |             &p[S::A..S::B]
151    |                ^ help: use the applicable keyword: `Self`
152
153 error: unnecessary structure name repetition
154   --> $DIR/use_self.rs:240:22
155    |
156 LL |             &p[S::A..S::B]
157    |                      ^ help: use the applicable keyword: `Self`
158
159 error: aborting due to 25 previous errors
160