]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/uninhabited-const-issue-61744.rs
fix const_prop spans and re-bless tests
[rust.git] / src / test / ui / consts / uninhabited-const-issue-61744.rs
index 15436f9c1b2cfa0cd8ecf1e308396658cb14b984..55f42d84f9cb032ca28e49be253c6c0ecbae6a7a 100644 (file)
@@ -1,11 +1,11 @@
 // build-fail
 
 pub const unsafe fn fake_type<T>() -> T {
-    hint_unreachable()
+    hint_unreachable() //~ ERROR evaluation of constant value failed
 }
 
 pub const unsafe fn hint_unreachable() -> ! {
-    fake_type() //~ ERROR evaluation of constant value failed
+    fake_type()
 }
 
 trait Const {