Debian Codegraph @

testsuite/tests/warnings/w53.compilers.reference

raw
1 File "w53.ml", line 12, characters 16-21:
2 12 | val x : int [@alert foo "foo"] (* rejected *)
3 ^^^^^
4 Warning 53 [misplaced-attribute]: the alert attribute cannot appear in this context
5
6 File "w53.ml", line 18, characters 6-11:
7 18 | [@@@alert foo "foo"] (* rejected *)
8 ^^^^^
9 Warning 53 [misplaced-attribute]: the alert attribute cannot appear in this context
10
11 File "w53.ml", line 22, characters 14-19:
12 22 | let x = 5 [@alert foo "foo"] (* rejected *)
13 ^^^^^
14 Warning 53 [misplaced-attribute]: the alert attribute cannot appear in this context
15
16 File "w53.ml", line 24, characters 16-21:
17 24 | let y = 10 [@@alert foo "foo"] (* rejected *)
18 ^^^^^
19 Warning 53 [misplaced-attribute]: the alert attribute cannot appear in this context
20
21 File "w53.ml", line 26, characters 6-11:
22 26 | [@@@alert foo "foo"] (* rejected *)
23 ^^^^^
24 Warning 53 [misplaced-attribute]: the alert attribute cannot appear in this context
25
26 File "w53.ml", line 34, characters 24-29:
27 34 | type t1 = { x : int [@boxed] } (* rejected *)
28 ^^^^^
29 Warning 53 [misplaced-attribute]: the boxed attribute cannot appear in this context
30
31 File "w53.ml", line 36, characters 16-21:
32 36 | val x : int [@boxed] (* rejected *)
33 ^^^^^
34 Warning 53 [misplaced-attribute]: the boxed attribute cannot appear in this context
35
36 File "w53.ml", line 40, characters 17-22:
37 40 | val y : int [@@boxed] (* rejected *)
38 ^^^^^
39 Warning 53 [misplaced-attribute]: the boxed attribute cannot appear in this context
40
41 File "w53.ml", line 42, characters 6-11:
42 42 | [@@@boxed] (* rejected *)
43 ^^^^^
44 Warning 53 [misplaced-attribute]: the boxed attribute cannot appear in this context
45
46 File "w53.ml", line 46, characters 16-21:
47 46 | let x = (42 [@boxed], 84) (* rejected *)
48 ^^^^^
49 Warning 53 [misplaced-attribute]: the boxed attribute cannot appear in this context
50
51 File "w53.ml", line 48, characters 16-21:
52 48 | let y = 10 [@@boxed] (* rejected *)
53 ^^^^^
54 Warning 53 [misplaced-attribute]: the boxed attribute cannot appear in this context
55
56 File "w53.ml", line 50, characters 6-11:
57 50 | [@@@boxed] (* rejected *)
58 ^^^^^
59 Warning 53 [misplaced-attribute]: the boxed attribute cannot appear in this context
60
61 File "w53.ml", line 57, characters 16-26:
62 57 | val x : int [@deprecated] (* rejected *)
63 ^^^^^^^^^^
64 Warning 53 [misplaced-attribute]: the deprecated attribute cannot appear in this context
65
66 File "w53.ml", line 63, characters 6-16:
67 63 | [@@@deprecated] (* rejected *)
68 ^^^^^^^^^^
69 Warning 53 [misplaced-attribute]: the deprecated attribute cannot appear in this context
70
71 File "w53.ml", line 67, characters 14-24:
72 67 | let x = 5 [@deprecated] (* rejected *)
73 ^^^^^^^^^^
74 Warning 53 [misplaced-attribute]: the deprecated attribute cannot appear in this context
75
76 File "w53.ml", line 69, characters 16-26:
77 69 | let y = 10 [@@deprecated] (* rejected *)
78 ^^^^^^^^^^
79 Warning 53 [misplaced-attribute]: the deprecated attribute cannot appear in this context
80
81 File "w53.ml", line 71, characters 6-16:
82 71 | [@@@deprecated] (* rejected *)
83 ^^^^^^^^^^
84 Warning 53 [misplaced-attribute]: the deprecated attribute cannot appear in this context
85
86 File "w53.ml", line 76, characters 19-37:
87 76 | type t1 = Foo1 [@deprecated_mutable] (* rejected *)
88 ^^^^^^^^^^^^^^^^^^
89 Warning 53 [misplaced-attribute]: the deprecated_mutable attribute cannot appear in this context
90
91 File "w53.ml", line 78, characters 16-34:
92 78 | val x : int [@deprecated_mutable] (* rejected *)
93 ^^^^^^^^^^^^^^^^^^
94 Warning 53 [misplaced-attribute]: the deprecated_mutable attribute cannot appear in this context
95
96 File "w53.ml", line 80, characters 21-39:
97 80 | type 'a t2 = 'a [@@deprecated_mutable] (* rejected *)
98 ^^^^^^^^^^^^^^^^^^
99 Warning 53 [misplaced-attribute]: the deprecated_mutable attribute cannot appear in this context
100
101 File "w53.ml", line 84, characters 24-42:
102 84 | type t4 = { x : int [@deprecated_mutable] } (* rejected *)
103 ^^^^^^^^^^^^^^^^^^
104 Warning 53 [misplaced-attribute]: the deprecated_mutable attribute cannot appear in this context
105
106 File "w53.ml", line 86, characters 17-35:
107 86 | val y : int [@@deprecated_mutable] (* rejected *)
108 ^^^^^^^^^^^^^^^^^^
109 Warning 53 [misplaced-attribute]: the deprecated_mutable attribute cannot appear in this context
110
111 File "w53.ml", line 88, characters 6-24:
112 88 | [@@@deprecated_mutable] (* rejected *)
113 ^^^^^^^^^^^^^^^^^^
114 Warning 53 [misplaced-attribute]: the deprecated_mutable attribute cannot appear in this context
115
116 File "w53.ml", line 92, characters 14-32:
117 92 | let x = 5 [@deprecated_mutable] (* rejected *)
118 ^^^^^^^^^^^^^^^^^^
119 Warning 53 [misplaced-attribute]: the deprecated_mutable attribute cannot appear in this context
120
121 File "w53.ml", line 94, characters 16-34:
122 94 | let y = 10 [@@deprecated_mutable] (* rejected *)
123 ^^^^^^^^^^^^^^^^^^
124 Warning 53 [misplaced-attribute]: the deprecated_mutable attribute cannot appear in this context
125
126 File "w53.ml", line 96, characters 6-24:
127 96 | [@@@deprecated_mutable] (* rejected *)
128 ^^^^^^^^^^^^^^^^^^
129 Warning 53 [misplaced-attribute]: the deprecated_mutable attribute cannot appear in this context
130
131 File "w53.ml", line 101, characters 32-46:
132 101 | type t1 = Foo1 of int * int [@explicit_arity] (* rejected *)
133 ^^^^^^^^^^^^^^
134 Warning 53 [misplaced-attribute]: the explicit_arity attribute cannot appear in this context
135
136 File "w53.ml", line 103, characters 16-30:
137 103 | val x : int [@explicit_arity] (* rejected *)
138 ^^^^^^^^^^^^^^
139 Warning 53 [misplaced-attribute]: the explicit_arity attribute cannot appear in this context
140
141 File "w53.ml", line 105, characters 20-34:
142 105 | type 'a t2 = 'a [@explicit_arity] (* rejected *)
143 ^^^^^^^^^^^^^^
144 Warning 53 [misplaced-attribute]: the explicit_arity attribute cannot appear in this context
145
146 File "w53.ml", line 107, characters 17-31:
147 107 | val y : int [@@explicit_arity] (* rejected *)
148 ^^^^^^^^^^^^^^
149 Warning 53 [misplaced-attribute]: the explicit_arity attribute cannot appear in this context
150
151 File "w53.ml", line 109, characters 6-20:
152 109 | [@@@explicit_arity] (* rejected *)
153 ^^^^^^^^^^^^^^
154 Warning 53 [misplaced-attribute]: the explicit_arity attribute cannot appear in this context
155
156 File "w53.ml", line 113, characters 14-28:
157 113 | let x = 5 [@explicit_arity] (* rejected *)
158 ^^^^^^^^^^^^^^
159 Warning 53 [misplaced-attribute]: the explicit_arity attribute cannot appear in this context
160
161 File "w53.ml", line 115, characters 16-30:
162 115 | let y = 10 [@@explicit_arity] (* rejected *)
163 ^^^^^^^^^^^^^^
164 Warning 53 [misplaced-attribute]: the explicit_arity attribute cannot appear in this context
165
166 File "w53.ml", line 117, characters 6-20:
167 117 | [@@@explicit_arity] (* rejected *)
168 ^^^^^^^^^^^^^^
169 Warning 53 [misplaced-attribute]: the explicit_arity attribute cannot appear in this context
170
171 File "w53.ml", line 122, characters 18-27:
172 122 | type t1 = int [@immediate] (* rejected *)
173 ^^^^^^^^^
174 Warning 53 [misplaced-attribute]: the immediate attribute cannot appear in this context
175
176 File "w53.ml", line 126, characters 16-25:
177 126 | val x : int [@immediate] (* rejected *)
178 ^^^^^^^^^
179 Warning 53 [misplaced-attribute]: the immediate attribute cannot appear in this context
180
181 File "w53.ml", line 127, characters 17-26:
182 127 | val x : int [@@immediate] (* rejected *)
183 ^^^^^^^^^
184 Warning 53 [misplaced-attribute]: the immediate attribute cannot appear in this context
185
186 File "w53.ml", line 129, characters 6-15:
187 129 | [@@@immediate] (* rejected *)
188 ^^^^^^^^^
189 Warning 53 [misplaced-attribute]: the immediate attribute cannot appear in this context
190
191 File "w53.ml", line 130, characters 6-17:
192 130 | [@@@immediate64] (* rejected *)
193 ^^^^^^^^^^^
194 Warning 53 [misplaced-attribute]: the immediate64 attribute cannot appear in this context
195
196 File "w53.ml", line 134, characters 15-24:
197 134 | let x = (4 [@immediate], 42 [@immediate64]) (* rejected *)
198 ^^^^^^^^^
199 Warning 53 [misplaced-attribute]: the immediate attribute cannot appear in this context
200
201 File "w53.ml", line 134, characters 32-43:
202 134 | let x = (4 [@immediate], 42 [@immediate64]) (* rejected *)
203 ^^^^^^^^^^^
204 Warning 53 [misplaced-attribute]: the immediate64 attribute cannot appear in this context
205
206 File "w53.ml", line 135, characters 21-30:
207 135 | let y = (4, 42) [@@immediate] (* rejected *)
208 ^^^^^^^^^
209 Warning 53 [misplaced-attribute]: the immediate attribute cannot appear in this context
210
211 File "w53.ml", line 136, characters 21-32:
212 136 | let z = (4, 42) [@@immediate64] (* rejected *)
213 ^^^^^^^^^^^
214 Warning 53 [misplaced-attribute]: the immediate64 attribute cannot appear in this context
215
216 File "w53.ml", line 138, characters 18-27:
217 138 | type t1 = int [@immediate] (* rejected *)
218 ^^^^^^^^^
219 Warning 53 [misplaced-attribute]: the immediate attribute cannot appear in this context
220
221 File "w53.ml", line 142, characters 6-15:
222 142 | [@@@immediate] (* rejected *)
223 ^^^^^^^^^
224 Warning 53 [misplaced-attribute]: the immediate attribute cannot appear in this context
225
226 File "w53.ml", line 143, characters 6-17:
227 143 | [@@@immediate64] (* rejected *)
228 ^^^^^^^^^^^
229 Warning 53 [misplaced-attribute]: the immediate64 attribute cannot appear in this context
230
231 File "w53.ml", line 148, characters 25-31:
232 148 | type t1 = int -> int [@inline] (* rejected *)
233 ^^^^^^
234 Warning 53 [misplaced-attribute]: the inline attribute cannot appear in this context
235
236 File "w53.ml", line 149, characters 26-32:
237 149 | type t2 = int -> int [@@inline] (* rejected *)
238 ^^^^^^
239 Warning 53 [misplaced-attribute]: the inline attribute cannot appear in this context
240
241 File "w53.ml", line 150, characters 25-32:
242 150 | type t3 = int -> int [@inlined] (* rejected *)
243 ^^^^^^^
244 Warning 53 [misplaced-attribute]: the inlined attribute cannot appear in this context
245
246 File "w53.ml", line 151, characters 26-33:
247 151 | type t4 = int -> int [@@inlined] (* rejected *)
248 ^^^^^^^
249 Warning 53 [misplaced-attribute]: the inlined attribute cannot appear in this context
250
251 File "w53.ml", line 153, characters 24-30:
252 153 | val f1 : int -> int [@inline] (* rejected *)
253 ^^^^^^
254 Warning 53 [misplaced-attribute]: the inline attribute cannot appear in this context
255
256 File "w53.ml", line 154, characters 25-31:
257 154 | val f2 : int -> int [@@inline] (* rejected *)
258 ^^^^^^
259 Warning 53 [misplaced-attribute]: the inline attribute cannot appear in this context
260
261 File "w53.ml", line 155, characters 24-31:
262 155 | val f3 : int -> int [@inlined] (* rejected *)
263 ^^^^^^^
264 Warning 53 [misplaced-attribute]: the inlined attribute cannot appear in this context
265
266 File "w53.ml", line 156, characters 25-32:
267 156 | val f4 : int -> int [@@inlined] (* rejected *)
268 ^^^^^^^
269 Warning 53 [misplaced-attribute]: the inlined attribute cannot appear in this context
270
271 File "w53.ml", line 158, characters 53-59:
272 158 | module type F = functor (X : sig end) -> sig end [@inline] (* rejected *)
273 ^^^^^^
274 Warning 53 [misplaced-attribute]: the inline attribute cannot appear in this context
275
276 File "w53.ml", line 159, characters 54-60:
277 159 | module type G = functor (X : sig end) -> sig end [@@inline] (* rejected *)
278 ^^^^^^
279 Warning 53 [misplaced-attribute]: the inline attribute cannot appear in this context
280
281 File "w53.ml", line 161, characters 6-12:
282 161 | [@@@inline] (* rejected *)
283 ^^^^^^
284 Warning 53 [misplaced-attribute]: the inline attribute cannot appear in this context
285
286 File "w53.ml", line 162, characters 6-13:
287 162 | [@@@inlined] (* rejected *)
288 ^^^^^^^
289 Warning 53 [misplaced-attribute]: the inlined attribute cannot appear in this context
290
291 File "w53.ml", line 166, characters 16-22:
292 166 | let h x = x [@inline] (* rejected *)
293 ^^^^^^
294 Warning 53 [misplaced-attribute]: the inline attribute cannot appear in this context
295
296 File "w53.ml", line 167, characters 16-28:
297 167 | let h x = x [@ocaml.inline] (* rejected *)
298 ^^^^^^^^^^^^
299 Warning 53 [misplaced-attribute]: the ocaml.inline attribute cannot appear in this context
300
301 File "w53.ml", line 169, characters 16-23:
302 169 | let i x = x [@inlined] (* rejected *)
303 ^^^^^^^
304 Warning 53 [misplaced-attribute]: the inlined attribute cannot appear in this context
305
306 File "w53.ml", line 170, characters 16-29:
307 170 | let j x = x [@ocaml.inlined] (* rejected *)
308 ^^^^^^^^^^^^^
309 Warning 53 [misplaced-attribute]: the ocaml.inlined attribute cannot appear in this context
310
311 File "w53.ml", line 173, characters 18-25:
312 173 | let l x = h x [@inlined] (* rejected *)
313 ^^^^^^^
314 Warning 53 [misplaced-attribute]: the inlined attribute cannot appear in this context
315
316 File "w53.ml", line 181, characters 27-33:
317 181 | module C = struct end [@@inline] (* rejected *)
318 ^^^^^^
319 Warning 53 [misplaced-attribute]: the inline attribute cannot appear in this context
320
321 File "w53.ml", line 182, characters 28-40:
322 182 | module C' = struct end [@@ocaml.inline] (* rejected *)
323 ^^^^^^^^^^^^
324 Warning 53 [misplaced-attribute]: the ocaml.inline attribute cannot appear in this context
325
326 File "w53.ml", line 183, characters 27-34:
327 183 | module D = struct end [@@inlined] (* rejected *)
328 ^^^^^^^
329 Warning 53 [misplaced-attribute]: the inlined attribute cannot appear in this context
330
331 File "w53.ml", line 184, characters 28-41:
332 184 | module D' = struct end [@@ocaml.inlined] (* rejected *)
333 ^^^^^^^^^^^^^
334 Warning 53 [misplaced-attribute]: the ocaml.inlined attribute cannot appear in this context
335
336 File "w53.ml", line 188, characters 18-24:
337 188 | module G = (A [@inline])(struct end) (* rejected *)
338 ^^^^^^
339 Warning 53 [misplaced-attribute]: the inline attribute cannot appear in this context
340
341 File "w53.ml", line 189, characters 19-31:
342 189 | module G' = (A [@ocaml.inline])(struct end) (* rejected *)
343 ^^^^^^^^^^^^
344 Warning 53 [misplaced-attribute]: the ocaml.inline attribute cannot appear in this context
345
346 File "w53.ml", line 193, characters 24-31:
347 193 | module I = Set.Make [@inlined] (* rejected *)
348 ^^^^^^^
349 Warning 53 [misplaced-attribute]: the inlined attribute cannot appear in this context
350
351 File "w53.ml", line 194, characters 25-38:
352 194 | module I' = Set.Make [@ocaml.inlined] (* rejected *)
353 ^^^^^^^^^^^^^
354 Warning 53 [misplaced-attribute]: the ocaml.inlined attribute cannot appear in this context
355
356 File "w53.ml", line 196, characters 25-32:
357 196 | module J = Set.Make [@@inlined] (* rejected *)
358 ^^^^^^^
359 Warning 53 [misplaced-attribute]: the inlined attribute cannot appear in this context
360
361 File "w53.ml", line 197, characters 26-39:
362 197 | module J' = Set.Make [@@ocaml.inlined] (* rejected *)
363 ^^^^^^^^^^^^^
364 Warning 53 [misplaced-attribute]: the ocaml.inlined attribute cannot appear in this context
365
366 File "w53.ml", line 202, characters 21-28:
367 202 | type 'a t1 = 'a [@@noalloc] (* rejected *)
368 ^^^^^^^
369 Warning 53 [misplaced-attribute]: the noalloc attribute cannot appear in this context
370
371 File "w53.ml", line 203, characters 19-26:
372 203 | type s1 = Foo1 [@noalloc] (* rejected *)
373 ^^^^^^^
374 Warning 53 [misplaced-attribute]: the noalloc attribute cannot appear in this context
375
376 File "w53.ml", line 204, characters 19-26:
377 204 | val x : int64 [@@noalloc] (* rejected *)
378 ^^^^^^^
379 Warning 53 [misplaced-attribute]: the noalloc attribute cannot appear in this context
380
381 File "w53.ml", line 206, characters 24-31:
382 206 | external y : (int64 [@noalloc]) -> (int64 [@noalloc]) = "x" (* rejected *)
383 ^^^^^^^
384 Warning 53 [misplaced-attribute]: the noalloc attribute cannot appear in this context
385
386 File "w53.ml", line 206, characters 46-53:
387 206 | external y : (int64 [@noalloc]) -> (int64 [@noalloc]) = "x" (* rejected *)
388 ^^^^^^^
389 Warning 53 [misplaced-attribute]: the noalloc attribute cannot appear in this context
390
391 File "w53.ml", line 211, characters 21-28:
392 211 | type 'a t1 = 'a [@@noalloc] (* rejected *)
393 ^^^^^^^
394 Warning 53 [misplaced-attribute]: the noalloc attribute cannot appear in this context
395
396 File "w53.ml", line 212, characters 19-26:
397 212 | type s1 = Foo1 [@noalloc] (* rejected *)
398 ^^^^^^^
399 Warning 53 [misplaced-attribute]: the noalloc attribute cannot appear in this context
400
401 File "w53.ml", line 213, characters 25-32:
402 213 | let x : int64 = 42L [@@noalloc] (* rejected *)
403 ^^^^^^^
404 Warning 53 [misplaced-attribute]: the noalloc attribute cannot appear in this context
405
406 File "w53.ml", line 215, characters 24-31:
407 215 | external y : (int64 [@noalloc]) -> (int64 [@noalloc]) = "x" (* rejected *)
408 ^^^^^^^
409 Warning 53 [misplaced-attribute]: the noalloc attribute cannot appear in this context
410
411 File "w53.ml", line 215, characters 46-53:
412 215 | external y : (int64 [@noalloc]) -> (int64 [@noalloc]) = "x" (* rejected *)
413 ^^^^^^^
414 Warning 53 [misplaced-attribute]: the noalloc attribute cannot appear in this context
415
416 File "w53.ml", line 244, characters 21-29:
417 244 | type 'a t1 = 'a [@@tailcall] (* rejected *)
418 ^^^^^^^^
419 Warning 53 [misplaced-attribute]: the tailcall attribute cannot appear in this context
420
421 File "w53.ml", line 245, characters 19-27:
422 245 | type s1 = Foo1 [@tailcall] (* rejected *)
423 ^^^^^^^^
424 Warning 53 [misplaced-attribute]: the tailcall attribute cannot appear in this context
425
426 File "w53.ml", line 246, characters 16-24:
427 246 | val x : int [@tailcall] (* rejected *)
428 ^^^^^^^^
429 Warning 53 [misplaced-attribute]: the tailcall attribute cannot appear in this context
430
431 File "w53.ml", line 248, characters 35-43:
432 248 | external z : int -> int = "x" [@@tailcall] (* rejected *)
433 ^^^^^^^^
434 Warning 53 [misplaced-attribute]: the tailcall attribute cannot appear in this context
435
436 File "w53.ml", line 250, characters 6-14:
437 250 | [@@@tailcall] (* rejected *)
438 ^^^^^^^^
439 Warning 53 [misplaced-attribute]: the tailcall attribute cannot appear in this context
440
441 File "w53.ml", line 254, characters 21-29:
442 254 | type 'a t1 = 'a [@@tailcall] (* rejected *)
443 ^^^^^^^^
444 Warning 53 [misplaced-attribute]: the tailcall attribute cannot appear in this context
445
446 File "w53.ml", line 255, characters 19-27:
447 255 | type s1 = Foo1 [@tailcall] (* rejected *)
448 ^^^^^^^^
449 Warning 53 [misplaced-attribute]: the tailcall attribute cannot appear in this context
450
451 File "w53.ml", line 257, characters 16-24:
452 257 | let m x = x [@tailcall] (* rejected *)
453 ^^^^^^^^
454 Warning 53 [misplaced-attribute]: the tailcall attribute cannot appear in this context
455
456 File "w53.ml", line 258, characters 16-30:
457 258 | let n x = x [@ocaml.tailcall] (* rejected *)
458 ^^^^^^^^^^^^^^
459 Warning 53 [misplaced-attribute]: the ocaml.tailcall attribute cannot appear in this context
460
461 File "w53.ml", line 261, characters 18-26:
462 261 | let q x = m x [@tailcall] (* rejected *)
463 ^^^^^^^^
464 Warning 53 [misplaced-attribute]: the tailcall attribute cannot appear in this context
465
466 File "w53.ml", line 263, characters 35-43:
467 263 | external z : int -> int = "x" [@@tailcall] (* rejected *)
468 ^^^^^^^^
469 Warning 53 [misplaced-attribute]: the tailcall attribute cannot appear in this context
470
471 File "w53.ml", line 265, characters 6-14:
472 265 | [@@@tailcall] (* rejected *)
473 ^^^^^^^^
474 Warning 53 [misplaced-attribute]: the tailcall attribute cannot appear in this context
475
476 File "w53.ml", line 270, characters 24-31:
477 270 | type t1 = { x : int [@unboxed] } (* rejected *)
478 ^^^^^^^
479 Warning 53 [misplaced-attribute]: the unboxed attribute cannot appear in this context
480
481 File "w53.ml", line 272, characters 16-23:
482 272 | val x : int [@unboxed] (* rejected *)
483 ^^^^^^^
484 Warning 53 [misplaced-attribute]: the unboxed attribute cannot appear in this context
485
486 File "w53.ml", line 276, characters 17-24:
487 276 | val y : int [@@unboxed] (* rejected *)
488 ^^^^^^^
489 Warning 53 [misplaced-attribute]: the unboxed attribute cannot appear in this context
490
491 File "w53.ml", line 280, characters 6-13:
492 280 | [@@@unboxed] (* rejected *)
493 ^^^^^^^
494 Warning 53 [misplaced-attribute]: the unboxed attribute cannot appear in this context
495
496 File "w53.ml", line 284, characters 16-23:
497 284 | let x = (42 [@unboxed], 84) (* rejected *)
498 ^^^^^^^
499 Warning 53 [misplaced-attribute]: the unboxed attribute cannot appear in this context
500
501 File "w53.ml", line 286, characters 16-23:
502 286 | let y = 10 [@@unboxed] (* rejected *)
503 ^^^^^^^
504 Warning 53 [misplaced-attribute]: the unboxed attribute cannot appear in this context
505
506 File "w53.ml", line 290, characters 6-13:
507 290 | [@@@unboxed] (* rejected *)
508 ^^^^^^^
509 Warning 53 [misplaced-attribute]: the unboxed attribute cannot appear in this context
510
511 File "w53.ml", line 295, characters 21-29:
512 295 | type 'a t1 = 'a [@@untagged] (* rejected *)
513 ^^^^^^^^
514 Warning 53 [misplaced-attribute]: the untagged attribute cannot appear in this context
515
516 File "w53.ml", line 296, characters 19-27:
517 296 | type s1 = Foo1 [@untagged] (* rejected *)
518 ^^^^^^^^
519 Warning 53 [misplaced-attribute]: the untagged attribute cannot appear in this context
520
521 File "w53.ml", line 297, characters 17-25:
522 297 | val x : int [@@untagged] (* rejected *)
523 ^^^^^^^^
524 Warning 53 [misplaced-attribute]: the untagged attribute cannot appear in this context
525
526 File "w53.ml", line 304, characters 21-29:
527 304 | type 'a t1 = 'a [@@untagged] (* rejected *)
528 ^^^^^^^^
529 Warning 53 [misplaced-attribute]: the untagged attribute cannot appear in this context
530
531 File "w53.ml", line 305, characters 19-27:
532 305 | type s1 = Foo1 [@untagged] (* rejected *)
533 ^^^^^^^^
534 Warning 53 [misplaced-attribute]: the untagged attribute cannot appear in this context
535
536 File "w53.ml", line 306, characters 22-30:
537 306 | let x : int = 42 [@@untagged] (* rejected *)
538 ^^^^^^^^
539 Warning 53 [misplaced-attribute]: the untagged attribute cannot appear in this context
540
541 File "w53.ml", line 314, characters 24-32:
542 314 | type t1 = { x : int [@unrolled 42] } (* rejected *)
543 ^^^^^^^^
544 Warning 53 [misplaced-attribute]: the unrolled attribute cannot appear in this context
545
546 File "w53.ml", line 315, characters 27-35:
547 315 | type t2 = { x : int } [@@unrolled 42] (* rejected *)
548 ^^^^^^^^
549 Warning 53 [misplaced-attribute]: the unrolled attribute cannot appear in this context
550
551 File "w53.ml", line 317, characters 23-31:
552 317 | val f : int -> int [@unrolled 42] (* rejected *)
553 ^^^^^^^^
554 Warning 53 [misplaced-attribute]: the unrolled attribute cannot appear in this context
555
556 File "w53.ml", line 318, characters 24-32:
557 318 | val g : int -> int [@@unrolled 42] (* rejected *)
558 ^^^^^^^^
559 Warning 53 [misplaced-attribute]: the unrolled attribute cannot appear in this context
560
561 File "w53.ml", line 320, characters 39-47:
562 320 | external z : float -> float = "x" [@@unrolled 42] (* rejected *)
563 ^^^^^^^^
564 Warning 53 [misplaced-attribute]: the unrolled attribute cannot appear in this context
565
566 File "w53.ml", line 322, characters 6-14:
567 322 | [@@@unrolled 42] (* rejected *)
568 ^^^^^^^^
569 Warning 53 [misplaced-attribute]: the unrolled attribute cannot appear in this context
570
571 File "w53.ml", line 326, characters 8-16:
572 326 | let [@unrolled 42] rec test_unrolled x = (* rejected *)
573 ^^^^^^^^
574 Warning 53 [misplaced-attribute]: the unrolled attribute cannot appear in this context
575
576 File "w53.ml", line 333, characters 24-32:
577 333 | type t1 = { x : int [@unrolled 42] } (* rejected *)
578 ^^^^^^^^
579 Warning 53 [misplaced-attribute]: the unrolled attribute cannot appear in this context
580
581 File "w53.ml", line 334, characters 27-35:
582 334 | type t2 = { x : int } [@@unrolled 42] (* rejected *)
583 ^^^^^^^^
584 Warning 53 [misplaced-attribute]: the unrolled attribute cannot appear in this context
585
586 File "w53.ml", line 336, characters 22-30:
587 336 | let rec f x = f x [@unrolled 42] (* rejected *)
588 ^^^^^^^^
589 Warning 53 [misplaced-attribute]: the unrolled attribute cannot appear in this context
590
591 File "w53.ml", line 337, characters 23-31:
592 337 | let rec f x = f x [@@unrolled 42] (* rejected *)
593 ^^^^^^^^
594 Warning 53 [misplaced-attribute]: the unrolled attribute cannot appear in this context
595
596 File "w53.ml", line 339, characters 39-47:
597 339 | external z : int -> int = "x" "y" [@@unrolled 42] (* rejected *)
598 ^^^^^^^^
599 Warning 53 [misplaced-attribute]: the unrolled attribute cannot appear in this context
600
601 File "w53.ml", line 341, characters 6-14:
602 341 | [@@@unrolled 42] (* rejected *)
603 ^^^^^^^^
604 Warning 53 [misplaced-attribute]: the unrolled attribute cannot appear in this context
605
606 File "w53.ml", line 390, characters 25-48:
607 390 | | Lit_pat2 of int [@@warn_on_literal_pattern] (* rejected *)
608 ^^^^^^^^^^^^^^^^^^^^^^^
609 Warning 53 [misplaced-attribute]: the warn_on_literal_pattern attribute cannot appear in this context
610
611 File "w53.ml", line 394, characters 16-39:
612 394 | val x : int [@warn_on_literal_pattern] (* rejected *)
613 ^^^^^^^^^^^^^^^^^^^^^^^
614 Warning 53 [misplaced-attribute]: the warn_on_literal_pattern attribute cannot appear in this context
615
616 File "w53.ml", line 396, characters 21-44:
617 396 | type 'a t2 = 'a [@@warn_on_literal_pattern] (* rejected *)
618 ^^^^^^^^^^^^^^^^^^^^^^^
619 Warning 53 [misplaced-attribute]: the warn_on_literal_pattern attribute cannot appear in this context
620
621 File "w53.ml", line 398, characters 17-40:
622 398 | val y : int [@@warn_on_literal_pattern] (* rejected *)
623 ^^^^^^^^^^^^^^^^^^^^^^^
624 Warning 53 [misplaced-attribute]: the warn_on_literal_pattern attribute cannot appear in this context
625
626 File "w53.ml", line 400, characters 6-29:
627 400 | [@@@warn_on_literal_pattern] (* rejected *)
628 ^^^^^^^^^^^^^^^^^^^^^^^
629 Warning 53 [misplaced-attribute]: the warn_on_literal_pattern attribute cannot appear in this context
630
631 File "w53.ml", line 406, characters 25-48:
632 406 | | Lit_pat2 of int [@@warn_on_literal_pattern] (* rejected *)
633 ^^^^^^^^^^^^^^^^^^^^^^^
634 Warning 53 [misplaced-attribute]: the warn_on_literal_pattern attribute cannot appear in this context
635
636 File "w53.ml", line 408, characters 14-37:
637 408 | let x = 5 [@warn_on_literal_pattern] (* rejected *)
638 ^^^^^^^^^^^^^^^^^^^^^^^
639 Warning 53 [misplaced-attribute]: the warn_on_literal_pattern attribute cannot appear in this context
640
641 File "w53.ml", line 410, characters 16-39:
642 410 | let y = 10 [@@warn_on_literal_pattern] (* rejected *)
643 ^^^^^^^^^^^^^^^^^^^^^^^
644 Warning 53 [misplaced-attribute]: the warn_on_literal_pattern attribute cannot appear in this context
645
646 File "w53.ml", line 412, characters 6-29:
647 412 | [@@@warn_on_literal_pattern] (* rejected *)
648 ^^^^^^^^^^^^^^^^^^^^^^^
649 Warning 53 [misplaced-attribute]: the warn_on_literal_pattern attribute cannot appear in this context
650
651 File "w53.ml", line 421, characters 21-25:
652 421 | type 'a t1 = 'a [@@poll error] (* rejected *)
653 ^^^^
654 Warning 53 [misplaced-attribute]: the poll attribute cannot appear in this context
655
656 File "w53.ml", line 422, characters 19-23:
657 422 | type s1 = Foo1 [@poll error] (* rejected *)
658 ^^^^
659 Warning 53 [misplaced-attribute]: the poll attribute cannot appear in this context
660
661 File "w53.ml", line 423, characters 19-23:
662 423 | val x : int64 [@@poll error] (* rejected *)
663 ^^^^
664 Warning 53 [misplaced-attribute]: the poll attribute cannot appear in this context
665
666 File "w53.ml", line 425, characters 24-28:
667 425 | external y : (int64 [@poll error]) -> (int64 [@poll error]) = (* rejected *)
668 ^^^^
669 Warning 53 [misplaced-attribute]: the poll attribute cannot appear in this context
670
671 File "w53.ml", line 425, characters 49-53:
672 425 | external y : (int64 [@poll error]) -> (int64 [@poll error]) = (* rejected *)
673 ^^^^
674 Warning 53 [misplaced-attribute]: the poll attribute cannot appear in this context
675
676 File "w53.ml", line 427, characters 39-43:
677 427 | external z : int64 -> int64 = "x" [@@poll error] (* rejected *)
678 ^^^^
679 Warning 53 [misplaced-attribute]: the poll attribute cannot appear in this context
680
681 File "w53.ml", line 431, characters 21-25:
682 431 | type 'a t1 = 'a [@@poll error] (* rejected *)
683 ^^^^
684 Warning 53 [misplaced-attribute]: the poll attribute cannot appear in this context
685
686 File "w53.ml", line 432, characters 19-23:
687 432 | type s1 = Foo1 [@poll error] (* rejected *)
688 ^^^^
689 Warning 53 [misplaced-attribute]: the poll attribute cannot appear in this context
690
691 File "w53.ml", line 433, characters 25-29:
692 433 | let x : int64 = 42L [@@poll error] (* rejected *)
693 ^^^^
694 Warning 53 [misplaced-attribute]: the poll attribute cannot appear in this context
695
696 File "w53.ml", line 436, characters 24-28:
697 436 | external y : (int64 [@poll error]) -> (int64 [@poll error]) = (* rejected *)
698 ^^^^
699 Warning 53 [misplaced-attribute]: the poll attribute cannot appear in this context
700
701 File "w53.ml", line 436, characters 49-53:
702 436 | external y : (int64 [@poll error]) -> (int64 [@poll error]) = (* rejected *)
703 ^^^^
704 Warning 53 [misplaced-attribute]: the poll attribute cannot appear in this context
705
706 File "w53.ml", line 438, characters 39-43:
707 438 | external z : int64 -> int64 = "x" [@@poll error] (* rejected *)
708 ^^^^
709 Warning 53 [misplaced-attribute]: the poll attribute cannot appear in this context
710
711 File "w53.ml", line 443, characters 21-31:
712 443 | type 'a t1 = 'a [@@specialise] (* rejected *)
713 ^^^^^^^^^^
714 Warning 53 [misplaced-attribute]: the specialise attribute cannot appear in this context
715
716 File "w53.ml", line 444, characters 19-29:
717 444 | type s1 = Foo1 [@specialise] (* rejected *)
718 ^^^^^^^^^^
719 Warning 53 [misplaced-attribute]: the specialise attribute cannot appear in this context
720
721 File "w53.ml", line 445, characters 19-29:
722 445 | val x : int64 [@@specialise] (* rejected *)
723 ^^^^^^^^^^
724 Warning 53 [misplaced-attribute]: the specialise attribute cannot appear in this context
725
726 File "w53.ml", line 447, characters 24-34:
727 447 | external y : (int64 [@specialise]) -> (int64 [@specialise]) = (* rejected *)
728 ^^^^^^^^^^
729 Warning 53 [misplaced-attribute]: the specialise attribute cannot appear in this context
730
731 File "w53.ml", line 447, characters 49-59:
732 447 | external y : (int64 [@specialise]) -> (int64 [@specialise]) = (* rejected *)
733 ^^^^^^^^^^
734 Warning 53 [misplaced-attribute]: the specialise attribute cannot appear in this context
735
736 File "w53.ml", line 449, characters 39-49:
737 449 | external z : int64 -> int64 = "x" [@@specialise] (* rejected *)
738 ^^^^^^^^^^
739 Warning 53 [misplaced-attribute]: the specialise attribute cannot appear in this context
740
741 File "w53.ml", line 453, characters 21-31:
742 453 | type 'a t1 = 'a [@@specialise] (* rejected *)
743 ^^^^^^^^^^
744 Warning 53 [misplaced-attribute]: the specialise attribute cannot appear in this context
745
746 File "w53.ml", line 454, characters 19-29:
747 454 | type s1 = Foo1 [@specialise] (* rejected *)
748 ^^^^^^^^^^
749 Warning 53 [misplaced-attribute]: the specialise attribute cannot appear in this context
750
751 File "w53.ml", line 455, characters 25-35:
752 455 | let x : int64 = 42L [@@specialise] (* rejected *)
753 ^^^^^^^^^^
754 Warning 53 [misplaced-attribute]: the specialise attribute cannot appear in this context
755
756 File "w53.ml", line 457, characters 16-26:
757 457 | let g x = (f[@specialise]) x (* rejected *)
758 ^^^^^^^^^^
759 Warning 53 [misplaced-attribute]: the specialise attribute cannot appear in this context
760
761 File "w53.ml", line 459, characters 24-34:
762 459 | external y : (int64 [@specialise]) -> (int64 [@specialise]) = (* rejected *)
763 ^^^^^^^^^^
764 Warning 53 [misplaced-attribute]: the specialise attribute cannot appear in this context
765
766 File "w53.ml", line 459, characters 49-59:
767 459 | external y : (int64 [@specialise]) -> (int64 [@specialise]) = (* rejected *)
768 ^^^^^^^^^^
769 Warning 53 [misplaced-attribute]: the specialise attribute cannot appear in this context
770
771 File "w53.ml", line 461, characters 39-49:
772 461 | external z : int64 -> int64 = "x" [@@specialise] (* rejected *)
773 ^^^^^^^^^^
774 Warning 53 [misplaced-attribute]: the specialise attribute cannot appear in this context
775
776 File "w53.ml", line 466, characters 21-32:
777 466 | type 'a t1 = 'a [@@specialised] (* rejected *)
778 ^^^^^^^^^^^
779 Warning 53 [misplaced-attribute]: the specialised attribute cannot appear in this context
780
781 File "w53.ml", line 467, characters 19-30:
782 467 | type s1 = Foo1 [@specialised] (* rejected *)
783 ^^^^^^^^^^^
784 Warning 53 [misplaced-attribute]: the specialised attribute cannot appear in this context
785
786 File "w53.ml", line 468, characters 19-30:
787 468 | val x : int64 [@@specialised] (* rejected *)
788 ^^^^^^^^^^^
789 Warning 53 [misplaced-attribute]: the specialised attribute cannot appear in this context
790
791 File "w53.ml", line 470, characters 24-35:
792 470 | external y : (int64 [@specialised]) -> (int64 [@specialised]) = (* rejected *)
793 ^^^^^^^^^^^
794 Warning 53 [misplaced-attribute]: the specialised attribute cannot appear in this context
795
796 File "w53.ml", line 470, characters 50-61:
797 470 | external y : (int64 [@specialised]) -> (int64 [@specialised]) = (* rejected *)
798 ^^^^^^^^^^^
799 Warning 53 [misplaced-attribute]: the specialised attribute cannot appear in this context
800
801 File "w53.ml", line 472, characters 39-50:
802 472 | external z : int64 -> int64 = "x" [@@specialised] (* rejected *)
803 ^^^^^^^^^^^
804 Warning 53 [misplaced-attribute]: the specialised attribute cannot appear in this context
805
806 File "w53.ml", line 476, characters 21-32:
807 476 | type 'a t1 = 'a [@@specialised] (* rejected *)
808 ^^^^^^^^^^^
809 Warning 53 [misplaced-attribute]: the specialised attribute cannot appear in this context
810
811 File "w53.ml", line 477, characters 19-30:
812 477 | type s1 = Foo1 [@specialised] (* rejected *)
813 ^^^^^^^^^^^
814 Warning 53 [misplaced-attribute]: the specialised attribute cannot appear in this context
815
816 File "w53.ml", line 478, characters 25-36:
817 478 | let x : int64 = 42L [@@specialised] (* rejected *)
818 ^^^^^^^^^^^
819 Warning 53 [misplaced-attribute]: the specialised attribute cannot appear in this context
820
821 File "w53.ml", line 479, characters 8-19:
822 479 | let [@specialised] f x = x (* rejected *)
823 ^^^^^^^^^^^
824 Warning 53 [misplaced-attribute]: the specialised attribute cannot appear in this context
825
826 File "w53.ml", line 482, characters 24-35:
827 482 | external y : (int64 [@specialised]) -> (int64 [@specialised]) = (* rejected *)
828 ^^^^^^^^^^^
829 Warning 53 [misplaced-attribute]: the specialised attribute cannot appear in this context
830
831 File "w53.ml", line 482, characters 50-61:
832 482 | external y : (int64 [@specialised]) -> (int64 [@specialised]) = (* rejected *)
833 ^^^^^^^^^^^
834 Warning 53 [misplaced-attribute]: the specialised attribute cannot appear in this context
835
836 File "w53.ml", line 484, characters 39-50:
837 484 | external z : int64 -> int64 = "x" [@@specialised] (* rejected *)
838 ^^^^^^^^^^^
839 Warning 53 [misplaced-attribute]: the specialised attribute cannot appear in this context
840
841 File "w53.ml", line 489, characters 21-34:
842 489 | type 'a t1 = 'a [@@tail_mod_cons] (* rejected *)
843 ^^^^^^^^^^^^^
844 Warning 53 [misplaced-attribute]: the tail_mod_cons attribute cannot appear in this context
845
846 File "w53.ml", line 490, characters 19-32:
847 490 | type s1 = Foo1 [@tail_mod_cons] (* rejected *)
848 ^^^^^^^^^^^^^
849 Warning 53 [misplaced-attribute]: the tail_mod_cons attribute cannot appear in this context
850
851 File "w53.ml", line 491, characters 19-32:
852 491 | val x : int64 [@@tail_mod_cons] (* rejected *)
853 ^^^^^^^^^^^^^
854 Warning 53 [misplaced-attribute]: the tail_mod_cons attribute cannot appear in this context
855
856 File "w53.ml", line 493, characters 24-37:
857 493 | external y : (int64 [@tail_mod_cons]) -> (int64 [@tail_mod_cons]) =
858 ^^^^^^^^^^^^^
859 Warning 53 [misplaced-attribute]: the tail_mod_cons attribute cannot appear in this context
860
861 File "w53.ml", line 493, characters 52-65:
862 493 | external y : (int64 [@tail_mod_cons]) -> (int64 [@tail_mod_cons]) =
863 ^^^^^^^^^^^^^
864 Warning 53 [misplaced-attribute]: the tail_mod_cons attribute cannot appear in this context
865
866 File "w53.ml", line 496, characters 39-52:
867 496 | external z : int64 -> int64 = "x" [@@tail_mod_cons] (* rejected *)
868 ^^^^^^^^^^^^^
869 Warning 53 [misplaced-attribute]: the tail_mod_cons attribute cannot appear in this context
870
871 File "w53.ml", line 500, characters 21-34:
872 500 | type 'a t1 = 'a [@@tail_mod_cons] (* rejected *)
873 ^^^^^^^^^^^^^
874 Warning 53 [misplaced-attribute]: the tail_mod_cons attribute cannot appear in this context
875
876 File "w53.ml", line 501, characters 19-32:
877 501 | type s1 = Foo1 [@tail_mod_cons] (* rejected *)
878 ^^^^^^^^^^^^^
879 Warning 53 [misplaced-attribute]: the tail_mod_cons attribute cannot appear in this context
880
881 File "w53.ml", line 502, characters 25-38:
882 502 | let x : int64 = 42L [@@tail_mod_cons] (* rejected *)
883 ^^^^^^^^^^^^^
884 Warning 53 [misplaced-attribute]: the tail_mod_cons attribute cannot appear in this context
885
886 File "w53.ml", line 504, characters 16-29:
887 504 | let g x = (f[@tail_mod_cons]) x (* rejected *)
888 ^^^^^^^^^^^^^
889 Warning 53 [misplaced-attribute]: the tail_mod_cons attribute cannot appear in this context
890
891 File "w53.ml", line 506, characters 24-37:
892 506 | external y : (int64 [@tail_mod_cons]) -> (int64 [@tail_mod_cons]) =
893 ^^^^^^^^^^^^^
894 Warning 53 [misplaced-attribute]: the tail_mod_cons attribute cannot appear in this context
895
896 File "w53.ml", line 506, characters 52-65:
897 506 | external y : (int64 [@tail_mod_cons]) -> (int64 [@tail_mod_cons]) =
898 ^^^^^^^^^^^^^
899 Warning 53 [misplaced-attribute]: the tail_mod_cons attribute cannot appear in this context
900
901 File "w53.ml", line 509, characters 39-52:
902 509 | external z : int64 -> int64 = "x" [@@tail_mod_cons] (* rejected *)
903 ^^^^^^^^^^^^^
904 Warning 53 [misplaced-attribute]: the tail_mod_cons attribute cannot appear in this context
905
906 File "w53.ml", line 515, characters 10-15:
907 515 | [@@@alert foo "foo"] (* rejected *)
908 ^^^^^
909 Warning 53 [misplaced-attribute]: the alert attribute cannot appear in this context