]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/typeck_type_placeholder_item.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / typeck / typeck_type_placeholder_item.stderr
1 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
2   --> $DIR/typeck_type_placeholder_item.rs:14:14
3    |
4 LL | fn test() -> _ { 5 }
5    |              ^ not allowed in type signatures
6
7 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
8   --> $DIR/typeck_type_placeholder_item.rs:17:16
9    |
10 LL | fn test2() -> (_, _) { (5, 5) }
11    |                ^ not allowed in type signatures
12
13 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
14   --> $DIR/typeck_type_placeholder_item.rs:17:19
15    |
16 LL | fn test2() -> (_, _) { (5, 5) }
17    |                   ^ not allowed in type signatures
18
19 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
20   --> $DIR/typeck_type_placeholder_item.rs:21:15
21    |
22 LL | static TEST3: _ = "test";
23    |               ^ not allowed in type signatures
24
25 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
26   --> $DIR/typeck_type_placeholder_item.rs:24:15
27    |
28 LL | static TEST4: _ = 145;
29    |               ^ not allowed in type signatures
30
31 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
32   --> $DIR/typeck_type_placeholder_item.rs:27:16
33    |
34 LL | static TEST5: (_, _) = (1, 2);
35    |                ^ not allowed in type signatures
36
37 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
38   --> $DIR/typeck_type_placeholder_item.rs:27:19
39    |
40 LL | static TEST5: (_, _) = (1, 2);
41    |                   ^ not allowed in type signatures
42
43 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
44   --> $DIR/typeck_type_placeholder_item.rs:31:13
45    |
46 LL | fn test6(_: _) { }
47    |             ^ not allowed in type signatures
48
49 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
50   --> $DIR/typeck_type_placeholder_item.rs:34:13
51    |
52 LL | fn test7(x: _) { let _x: usize = x; }
53    |             ^ not allowed in type signatures
54
55 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
56   --> $DIR/typeck_type_placeholder_item.rs:37:22
57    |
58 LL | fn test8(_f: fn() -> _) { }
59    |                      ^ not allowed in type signatures
60
61 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
62   --> $DIR/typeck_type_placeholder_item.rs:59:8
63    |
64 LL |     a: _,
65    |        ^ not allowed in type signatures
66
67 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
68   --> $DIR/typeck_type_placeholder_item.rs:61:9
69    |
70 LL |     b: (_, _),
71    |         ^ not allowed in type signatures
72
73 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
74   --> $DIR/typeck_type_placeholder_item.rs:61:12
75    |
76 LL |     b: (_, _),
77    |            ^ not allowed in type signatures
78
79 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
80   --> $DIR/typeck_type_placeholder_item.rs:112:12
81    |
82 LL |         a: _,
83    |            ^ not allowed in type signatures
84
85 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
86   --> $DIR/typeck_type_placeholder_item.rs:114:13
87    |
88 LL |         b: (_, _),
89    |             ^ not allowed in type signatures
90
91 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
92   --> $DIR/typeck_type_placeholder_item.rs:114:16
93    |
94 LL |         b: (_, _),
95    |                ^ not allowed in type signatures
96
97 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
98   --> $DIR/typeck_type_placeholder_item.rs:67:21
99    |
100 LL |     fn fn_test() -> _ { 5 }
101    |                     ^ not allowed in type signatures
102
103 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
104   --> $DIR/typeck_type_placeholder_item.rs:70:23
105    |
106 LL |     fn fn_test2() -> (_, _) { (5, 5) }
107    |                       ^ not allowed in type signatures
108
109 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
110   --> $DIR/typeck_type_placeholder_item.rs:70:26
111    |
112 LL |     fn fn_test2() -> (_, _) { (5, 5) }
113    |                          ^ not allowed in type signatures
114
115 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
116   --> $DIR/typeck_type_placeholder_item.rs:74:22
117    |
118 LL |     static FN_TEST3: _ = "test";
119    |                      ^ not allowed in type signatures
120
121 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
122   --> $DIR/typeck_type_placeholder_item.rs:77:22
123    |
124 LL |     static FN_TEST4: _ = 145;
125    |                      ^ not allowed in type signatures
126
127 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
128   --> $DIR/typeck_type_placeholder_item.rs:80:23
129    |
130 LL |     static FN_TEST5: (_, _) = (1, 2);
131    |                       ^ not allowed in type signatures
132
133 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
134   --> $DIR/typeck_type_placeholder_item.rs:80:26
135    |
136 LL |     static FN_TEST5: (_, _) = (1, 2);
137    |                          ^ not allowed in type signatures
138
139 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
140   --> $DIR/typeck_type_placeholder_item.rs:84:20
141    |
142 LL |     fn fn_test6(_: _) { }
143    |                    ^ not allowed in type signatures
144
145 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
146   --> $DIR/typeck_type_placeholder_item.rs:87:20
147    |
148 LL |     fn fn_test7(x: _) { let _x: usize = x; }
149    |                    ^ not allowed in type signatures
150
151 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
152   --> $DIR/typeck_type_placeholder_item.rs:90:29
153    |
154 LL |     fn fn_test8(_f: fn() -> _) { }
155    |                             ^ not allowed in type signatures
156
157 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
158   --> $DIR/typeck_type_placeholder_item.rs:43:24
159    |
160 LL |     fn test9(&self) -> _ { () }
161    |                        ^ not allowed in type signatures
162
163 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
164   --> $DIR/typeck_type_placeholder_item.rs:46:27
165    |
166 LL |     fn test10(&self, _x : _) { }
167    |                           ^ not allowed in type signatures
168
169 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
170   --> $DIR/typeck_type_placeholder_item.rs:51:24
171    |
172 LL |     fn clone(&self) -> _ { Test9 }
173    |                        ^ not allowed in type signatures
174
175 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
176   --> $DIR/typeck_type_placeholder_item.rs:54:37
177    |
178 LL |     fn clone_from(&mut self, other: _) { *self = Test9; }
179    |                                     ^ not allowed in type signatures
180
181 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
182   --> $DIR/typeck_type_placeholder_item.rs:96:31
183    |
184 LL |         fn fn_test9(&self) -> _ { () }
185    |                               ^ not allowed in type signatures
186
187 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
188   --> $DIR/typeck_type_placeholder_item.rs:99:34
189    |
190 LL |         fn fn_test10(&self, _x : _) { }
191    |                                  ^ not allowed in type signatures
192
193 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
194   --> $DIR/typeck_type_placeholder_item.rs:104:28
195    |
196 LL |         fn clone(&self) -> _ { FnTest9 }
197    |                            ^ not allowed in type signatures
198
199 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
200   --> $DIR/typeck_type_placeholder_item.rs:107:41
201    |
202 LL |         fn clone_from(&mut self, other: _) { *self = FnTest9; }
203    |                                         ^ not allowed in type signatures
204
205 error: aborting due to 34 previous errors
206
207 For more information about this error, try `rustc --explain E0121`.