about summary refs log tree commit diff
path: root/tests/rustdoc-ui/const-evalutation-ice.rs
diff options
context:
space:
mode:
authorOli Scherer <github333195615777966@oli-obk.de>2025-05-28 10:29:08 +0000
committerOli Scherer <github333195615777966@oli-obk.de>2025-06-02 15:37:15 +0000
commitb331b8b96d86a6433df957a3cc49ed51f3656135 (patch)
tree72e20ae9fa73a475719589593a790156181e4e24 /tests/rustdoc-ui/const-evalutation-ice.rs
parente6152cdf5b31bd844a4cc1049433859d54863602 (diff)
downloadrust-b331b8b96d86a6433df957a3cc49ed51f3656135.tar.gz
rust-b331b8b96d86a6433df957a3cc49ed51f3656135.zip
Use the informative error as the main const eval error message
Diffstat (limited to 'tests/rustdoc-ui/const-evalutation-ice.rs')
-rw-r--r--tests/rustdoc-ui/const-evalutation-ice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rustdoc-ui/const-evalutation-ice.rs b/tests/rustdoc-ui/const-evalutation-ice.rs
index 0dd3bcaa289..72bcbeb4c51 100644
--- a/tests/rustdoc-ui/const-evalutation-ice.rs
+++ b/tests/rustdoc-ui/const-evalutation-ice.rs
@@ -4,8 +4,8 @@ use std::cell::Cell;
 use std::mem;
 
 pub struct S {
-    s: Cell<usize>
+    s: Cell<usize>,
 }
 
 pub const N: usize = 0 - (mem::size_of::<S>() != 400) as usize;
-//~^ ERROR evaluation of constant value failed
+//~^ ERROR overflow