From 4d473300a200b26b04335dcd32200878ce8e6e04 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 27 Jun 2018 14:55:06 +0200 Subject: Turn the use of erroneous constants into errors again --- src/test/ui/const-eval/conditional_array_execution.stderr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/ui/const-eval/conditional_array_execution.stderr') diff --git a/src/test/ui/const-eval/conditional_array_execution.stderr b/src/test/ui/const-eval/conditional_array_execution.stderr index 8a1b7572179..649da03a5e7 100644 --- a/src/test/ui/const-eval/conditional_array_execution.stderr +++ b/src/test/ui/const-eval/conditional_array_execution.stderr @@ -12,7 +12,7 @@ note: lint level defined here LL | #![warn(const_err)] | ^^^^^^^^^ -warning: referenced constant +warning: referenced constant has errors --> $DIR/conditional_array_execution.rs:19:20 | LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; @@ -27,7 +27,7 @@ warning: this expression will panic at runtime LL | println!("{}", FOO); | ^^^ referenced constant has errors -error[E0080]: referenced constant +error[E0080]: referenced constant has errors --> $DIR/conditional_array_execution.rs:19:20 | LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; -- cgit 1.4.1-3-g733a5