Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
5f6fa960c254dfda8ba1d5dc2fb281b6908d8005
/
.
/
tests
/
ui
/
consts
/
issue-66342.rs
blob: 0a87f789e48866619d57e6fb8f4acdcd56cda9f6 [
file
]
//@ check-pass
//@ only-x86_64
// Checks that the compiler does not actually try to allocate 4 TB during compilation and OOM crash.
fn
foo
()
->
[
u8
;
4
*
1024
*
1024
*
1024
*
1024
]
{
unimplemented
!()
}
fn
main
()
{
foo
();
}