We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3732b7a commit 9e1b210Copy full SHA for 9e1b210
src/test/ui/consts/issue-66342.rs
@@ -1,5 +1,7 @@
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
}
src/test/ui/consts/issue-66397.rs
// build-pass
fn main() {
[0; 4 * 1024 * 1024 * 1024 * 1024];
0 commit comments