]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-56762.rs
Auto merge of #56983 - ljedrz:parallel_query_tweaks, r=Zoxc
[rust.git] / src / test / ui / issues / issue-56762.rs
1 // only-x86_64
2 const HUGE_SIZE: usize = !0usize / 8;
3
4
5 pub struct TooBigArray {
6     arr: [u8; HUGE_SIZE],
7 }
8
9 impl TooBigArray {
10     pub const fn new() -> Self {
11         TooBigArray { arr: [0x00; HUGE_SIZE], }
12     }
13 }
14
15 static MY_TOO_BIG_ARRAY_1: TooBigArray = TooBigArray::new();
16 static MY_TOO_BIG_ARRAY_2: [u8; HUGE_SIZE] = [0x00; HUGE_SIZE];
17
18 fn main() { }