]> git.lizzy.rs Git - rust.git/blob - tests/ui/use_self.stderr
Rustup https://github.com/rust-lang/rust/pull/67359
[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    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
61
62 error: unnecessary structure name repetition
63   --> $DIR/use_self.rs:113:17
64    |
65 LL |                 Foo {}
66    |                 ^^^ help: use the applicable keyword: `Self`
67 ...
68 LL |         use_self_expand!(); // Should lint in local macros
69    |         ------------------- in this macro invocation
70    |
71    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
72
73 error: unnecessary structure name repetition
74   --> $DIR/use_self.rs:148:21
75    |
76 LL |         fn baz() -> Foo {
77    |                     ^^^ help: use the applicable keyword: `Self`
78
79 error: unnecessary structure name repetition
80   --> $DIR/use_self.rs:149:13
81    |
82 LL |             Foo {}
83    |             ^^^ help: use the applicable keyword: `Self`
84
85 error: unnecessary structure name repetition
86   --> $DIR/use_self.rs:136:29
87    |
88 LL |                 fn bar() -> Bar {
89    |                             ^^^ help: use the applicable keyword: `Self`
90
91 error: unnecessary structure name repetition
92   --> $DIR/use_self.rs:137:21
93    |
94 LL |                     Bar { foo: Foo {} }
95    |                     ^^^ help: use the applicable keyword: `Self`
96
97 error: unnecessary structure name repetition
98   --> $DIR/use_self.rs:166:21
99    |
100 LL |             let _ = Enum::B(42);
101    |                     ^^^^ help: use the applicable keyword: `Self`
102
103 error: unnecessary structure name repetition
104   --> $DIR/use_self.rs:167:21
105    |
106 LL |             let _ = Enum::C { field: true };
107    |                     ^^^^ help: use the applicable keyword: `Self`
108
109 error: unnecessary structure name repetition
110   --> $DIR/use_self.rs:168:21
111    |
112 LL |             let _ = Enum::A;
113    |                     ^^^^ help: use the applicable keyword: `Self`
114
115 error: unnecessary structure name repetition
116   --> $DIR/use_self.rs:199:13
117    |
118 LL |             nested::A::fun_1();
119    |             ^^^^^^^^^ help: use the applicable keyword: `Self`
120
121 error: unnecessary structure name repetition
122   --> $DIR/use_self.rs:200:13
123    |
124 LL |             nested::A::A;
125    |             ^^^^^^^^^ help: use the applicable keyword: `Self`
126
127 error: unnecessary structure name repetition
128   --> $DIR/use_self.rs:202:13
129    |
130 LL |             nested::A {};
131    |             ^^^^^^^^^ help: use the applicable keyword: `Self`
132
133 error: unnecessary structure name repetition
134   --> $DIR/use_self.rs:221:13
135    |
136 LL |             TestStruct::from_something()
137    |             ^^^^^^^^^^ help: use the applicable keyword: `Self`
138
139 error: unnecessary structure name repetition
140   --> $DIR/use_self.rs:235:25
141    |
142 LL |         async fn g() -> S {
143    |                         ^ help: use the applicable keyword: `Self`
144
145 error: unnecessary structure name repetition
146   --> $DIR/use_self.rs:236:13
147    |
148 LL |             S {}
149    |             ^ help: use the applicable keyword: `Self`
150
151 error: unnecessary structure name repetition
152   --> $DIR/use_self.rs:240:16
153    |
154 LL |             &p[S::A..S::B]
155    |                ^ help: use the applicable keyword: `Self`
156
157 error: unnecessary structure name repetition
158   --> $DIR/use_self.rs:240:22
159    |
160 LL |             &p[S::A..S::B]
161    |                      ^ help: use the applicable keyword: `Self`
162
163 error: aborting due to 25 previous errors
164