1 #![feature(generic_const_exprs)]
2 #![allow(incomplete_features)]
4 // The goal is to get an unevaluated const `ct` with a `Ty::Infer(TyVar(_#1t)` subst.
6 // If we are then able to infer `ty::Infer(TyVar(_#1t) := Ty<ct>` we introduced an
7 // artificial inference cycle.
8 fn bind<T>() -> (T, [u8; 6 + 1]) {
13 let (mut t, foo) = bind();
14 // `t` is `ty::Infer(TyVar(_#1t))`
15 // `foo` contains `ty::Infer(TyVar(_#1t))` in its substs
17 //~^ ERROR mismatched types