From b331b8b96d86a6433df957a3cc49ed51f3656135 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Wed, 28 May 2025 10:29:08 +0000 Subject: Use the informative error as the main const eval error message --- tests/rustdoc-ui/const-evalutation-ice.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/rustdoc-ui/const-evalutation-ice.rs') 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 + s: Cell, } pub const N: usize = 0 - (mem::size_of::() != 400) as usize; -//~^ ERROR evaluation of constant value failed +//~^ ERROR overflow -- cgit 1.4.1-3-g733a5