]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-66342.rs
5c93f874256ee4db3c18c148615250e973459993
[rust.git] / src / test / ui / consts / issue-66342.rs
1 // check-pass
2
3 // Checks that the compiler does not actually try to allocate 4 TB during compilation and OOM crash.
4
5 fn foo() -> [u8; 4 * 1024 * 1024 * 1024 * 1024] {
6     unimplemented!()
7 }
8
9 fn main() {
10     foo();
11 }