about summary refs log tree commit diff
path: root/tests/ui/consts/large_const_alloc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/large_const_alloc.rs')
-rw-r--r--tests/ui/consts/large_const_alloc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/consts/large_const_alloc.rs b/tests/ui/consts/large_const_alloc.rs
index 3573a018630..c5b19dbc17f 100644
--- a/tests/ui/consts/large_const_alloc.rs
+++ b/tests/ui/consts/large_const_alloc.rs
@@ -9,12 +9,12 @@
 const FOO: () = {
     // 128 TiB, unlikely anyone has that much RAM
     let x = [0_u8; (1 << 47) - 1];
-    //~^ ERROR evaluation of constant value failed
+    //~^ ERROR tried to allocate more memory than available to compiler
 };
 
 static FOO2: () = {
     let x = [0_u8; (1 << 47) - 1];
-    //~^ ERROR could not evaluate static initializer
+    //~^ ERROR tried to allocate more memory than available to compiler
 };
 
 fn main() {