]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-28561.rs
Rollup merge of #96609 - ibraheemdev:arc-downcast-unchecked, r=m-ou-se
[rust.git] / src / test / ui / issues / issue-28561.rs
1 // check-pass
2 #[derive(Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd, Clone, Copy)]
3 struct Array<T> {
4     f00: [T; 00],
5     f01: [T; 01],
6     f02: [T; 02],
7     f03: [T; 03],
8     f04: [T; 04],
9     f05: [T; 05],
10     f06: [T; 06],
11     f07: [T; 07],
12     f08: [T; 08],
13     f09: [T; 09],
14     f10: [T; 10],
15     f11: [T; 11],
16     f12: [T; 12],
17     f13: [T; 13],
18     f14: [T; 14],
19     f15: [T; 15],
20     f16: [T; 16],
21     f17: [T; 17],
22     f18: [T; 18],
23     f19: [T; 19],
24     f20: [T; 20],
25     f21: [T; 21],
26     f22: [T; 22],
27     f23: [T; 23],
28     f24: [T; 24],
29     f25: [T; 25],
30     f26: [T; 26],
31     f27: [T; 27],
32     f28: [T; 28],
33     f29: [T; 29],
34     f30: [T; 30],
35     f31: [T; 31],
36     f32: [T; 32],
37 }
38
39 #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
40 struct Fn<A, B, C, D, E, F, G, H, I, J, K, L> {
41     f00: fn(),
42     f01: fn(A),
43     f02: fn(A, B),
44     f03: fn(A, B, C),
45     f04: fn(A, B, C, D),
46     f05: fn(A, B, C, D, E),
47     f06: fn(A, B, C, D, E, F),
48     f07: fn(A, B, C, D, E, F, G),
49     f08: fn(A, B, C, D, E, F, G, H),
50     f09: fn(A, B, C, D, E, F, G, H, I),
51     f10: fn(A, B, C, D, E, F, G, H, I, J),
52     f11: fn(A, B, C, D, E, F, G, H, I, J, K),
53     f12: fn(A, B, C, D, E, F, G, H, I, J, K, L),
54 }
55
56 #[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
57 struct Tuple<A, B, C, D, E, F, G, H, I, J, K, L> {
58     f00: (),
59     f01: (A),
60     f02: (A, B),
61     f03: (A, B, C),
62     f04: (A, B, C, D),
63     f05: (A, B, C, D, E),
64     f06: (A, B, C, D, E, F),
65     f07: (A, B, C, D, E, F, G),
66     f08: (A, B, C, D, E, F, G, H),
67     f09: (A, B, C, D, E, F, G, H, I),
68     f10: (A, B, C, D, E, F, G, H, I, J),
69     f11: (A, B, C, D, E, F, G, H, I, J, K),
70     f12: (A, B, C, D, E, F, G, H, I, J, K, L),
71 }
72
73 fn main() {}