We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a49b746 commit 81e4d5fCopy full SHA for 81e4d5f
compiler/rustc_typeck/src/check/mod.rs
@@ -540,6 +540,12 @@ fn typeck_with_fallback<'tcx>(
540
kind: TypeVariableOriginKind::TypeInference,
541
span,
542
}),
543
+ Node::Ty(&hir::Ty {
544
+ kind: hir::TyKind::Typeof(ref anon_const), ..
545
+ }) if anon_const.hir_id == id => fcx.next_ty_var(TypeVariableOrigin {
546
+ kind: TypeVariableOriginKind::TypeInference,
547
+ span,
548
+ }),
549
Node::Expr(&hir::Expr { kind: hir::ExprKind::InlineAsm(ia), .. })
550
if ia.operands.iter().any(|(op, _op_sp)| match op {
551
hir::InlineAsmOperand::Const { anon_const } => {
0 commit comments