]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/occurs-check/unused-substs-2.rs
combine: stop eagerly evaluating consts
[rust.git] / src / test / ui / const-generics / occurs-check / unused-substs-2.rs
index 12444ec5312d98b42398cb5099a6e838accb309f..2d00141fbf70bb1393262a56a7d2e1b76a1d6d60 100644 (file)
@@ -1,4 +1,3 @@
-// check-pass
 #![feature(const_generics)]
 #![allow(incomplete_features)]
 
@@ -24,4 +23,6 @@ fn main() {
     // `t` is `ty::Infer(TyVar(_#1t))`
     // `foo` contains `ty::Infer(TyVar(_#1t))` in its substs
     t = foo;
+    //~^ ERROR mismatched types
+    //~| NOTE cyclic type
 }