about summary refs log tree commit diff
path: root/src/test/ui/consts/const-eval/const-eval-query-stack.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-eval/const-eval-query-stack.rs')
-rw-r--r--src/test/ui/consts/const-eval/const-eval-query-stack.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/ui/consts/const-eval/const-eval-query-stack.rs b/src/test/ui/consts/const-eval/const-eval-query-stack.rs
index e73e54ff5f1..c9460498951 100644
--- a/src/test/ui/consts/const-eval/const-eval-query-stack.rs
+++ b/src/test/ui/consts/const-eval/const-eval-query-stack.rs
@@ -1,5 +1,4 @@
 // compile-flags: -Ztreat-err-as-bug=2
-//~^ ERROR 1:1: 1:1: ty::ConstKind::Error constructed but no error reported
 // build-fail
 // failure-status: 101
 // rustc-env:RUST_BACKTRACE=1
@@ -23,5 +22,7 @@ const X: i32 = 1 / 0; //~WARN any use of this value will cause an error
 fn main() {
     let x: &'static i32 = &X;
     //~^ ERROR evaluation of constant value failed
+    //~| ERROR erroneous constant used
+    //~| WARNING this was previously accepted by the compiler
     println!("x={}", x);
 }