]>
Commit | Line | Data |
---|---|---|
dfeec247 | 1 | // build-fail |
b7449926 XL |
2 | // normalize-stderr-test "S32" -> "SXX" |
3 | // normalize-stderr-test "S1M" -> "SXX" | |
1a4d82fc JJ |
4 | // error-pattern: too big for the current |
5 | ||
48663c56 XL |
6 | // FIXME https://github.com/rust-lang/rust/issues/59774 |
7 | // normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> "" | |
8 | // normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> "" | |
9 | ||
1a4d82fc JJ |
10 | struct S32<T> { |
11 | v0: T, | |
12 | v1: T, | |
13 | v2: T, | |
14 | v3: T, | |
15 | v4: T, | |
16 | v5: T, | |
17 | v6: T, | |
18 | v7: T, | |
19 | v8: T, | |
20 | u9: T, | |
21 | v10: T, | |
22 | v11: T, | |
23 | v12: T, | |
24 | v13: T, | |
25 | v14: T, | |
26 | v15: T, | |
27 | v16: T, | |
28 | v17: T, | |
29 | v18: T, | |
30 | v19: T, | |
31 | v20: T, | |
32 | v21: T, | |
33 | v22: T, | |
34 | v23: T, | |
35 | v24: T, | |
36 | u25: T, | |
37 | v26: T, | |
38 | v27: T, | |
39 | v28: T, | |
40 | v29: T, | |
41 | v30: T, | |
42 | v31: T, | |
43 | } | |
44 | ||
45 | struct S1k<T> { val: S32<S32<T>> } | |
46 | ||
47 | struct S1M<T> { val: S1k<S1k<T>> } | |
48 | ||
49 | fn main() { | |
50 | let fat: Option<S1M<S1M<S1M<u32>>>> = None; | |
fc512014 | 51 | //~^ ERROR are too big for the current architecture |
416331ca | 52 | |
1a4d82fc | 53 | } |