]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-66397.rs
Rollup merge of #106699 - eholk:await-chains-drop-tracking, r=wesleywiser
[rust.git] / tests / ui / consts / issue-66397.rs
1 // check-pass
2 // only-x86_64
3
4 // Checks that the compiler does not actually try to allocate 4 TB during compilation and OOM crash.
5
6 fn main() {
7     [0; 4 * 1024 * 1024 * 1024 * 1024];
8 }