]> git.lizzy.rs Git - rust.git/blob - src/test/ui/huge-struct.rs
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / huge-struct.rs
1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 // normalize-stderr-test "S32" -> "SXX"
12 // normalize-stderr-test "S1M" -> "SXX"
13 // error-pattern: too big for the current
14
15 struct S32<T> {
16     v0: T,
17     v1: T,
18     v2: T,
19     v3: T,
20     v4: T,
21     v5: T,
22     v6: T,
23     v7: T,
24     v8: T,
25     u9: T,
26     v10: T,
27     v11: T,
28     v12: T,
29     v13: T,
30     v14: T,
31     v15: T,
32     v16: T,
33     v17: T,
34     v18: T,
35     v19: T,
36     v20: T,
37     v21: T,
38     v22: T,
39     v23: T,
40     v24: T,
41     u25: T,
42     v26: T,
43     v27: T,
44     v28: T,
45     v29: T,
46     v30: T,
47     v31: T,
48 }
49
50 struct S1k<T> { val: S32<S32<T>> }
51
52 struct S1M<T> { val: S1k<S1k<T>> }
53
54 fn main() {
55     let fat: Option<S1M<S1M<S1M<u32>>>> = None;
56 }