Skip to content

Commit

Permalink
repeat expressions abort due to OOM instead of execution time exhaustion
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Oct 12, 2017
1 parent f7f789a commit 0424302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/compile-fail/repeat2.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fn main() {
let data: [u8; 1024*1024*1024] = [42; 1024*1024*1024];
//~^ ERROR: reached the configured maximum execution time
//~^ ERROR: tried to allocate
assert_eq!(data.len(), 1024*1024*1024);
}

0 comments on commit 0424302

Please sign in to comment.