bound variables during ctfe are a bug

This commit is contained in:
lcnr
2022-07-04 19:13:53 +02:00
parent d15b00af48
commit e6660326a3
2 changed files with 3 additions and 3 deletions

View File

@@ -79,9 +79,9 @@ pub(crate) fn eval_nullary_intrinsic<'tcx>(
ty::Projection(_)
| ty::Opaque(_, _)
| ty::Param(_)
| ty::Bound(_, _)
| ty::Placeholder(_)
| ty::Infer(_) => throw_inval!(TooGeneric),
ty::Bound(_, _) => bug!("bound ty during ctfe"),
ty::Bool
| ty::Char
| ty::Int(_)