Skip to content

Commit 0c52c3e

Browse files
committed
Respond to review feedback
1 parent 92154d0 commit 0c52c3e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/test/ui/consts/issue-66342.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// check-pass
22

3+
// Checks that the compiler does not actually try to allocate 4 TB during compilation and OOM crash.
4+
35
fn foo() -> [u8; 4 * 1024 * 1024 * 1024 * 1024] {
46
unimplemented!()
57
}

src/test/ui/consts/issue-66397.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// build-pass
22

3+
// Checks that the compiler does not actually try to allocate 4 TB during compilation and OOM crash.
4+
35
fn main() {
46
[0; 4 * 1024 * 1024 * 1024 * 1024];
57
}

0 commit comments

Comments
 (0)