From bb367c47201c7f1acba702e49be1f4bcdf4221ef Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Mon, 23 Apr 2018 11:12:33 +0200 Subject: [PATCH] always optimize test The error messages differ between optimized and nonoptimized mode --- src/test/ui/const-eval/promoted_errors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/ui/const-eval/promoted_errors.rs b/src/test/ui/const-eval/promoted_errors.rs index c6d62e20576..dc30c7f9cce 100644 --- a/src/test/ui/const-eval/promoted_errors.rs +++ b/src/test/ui/const-eval/promoted_errors.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-pass - +// compile-flags: -O fn main() { println!("{}", 0u32 - 1); //~^ WARN const_err