This commit is contained in:
Amanieu d'Antras 2024-07-23 23:31:34 +01:00
parent c77b56901f
commit d4ca1ac8b9

View File

@ -77,11 +77,7 @@ fn anon_const_type_of<'tcx>(tcx: TyCtxt<'tcx>, def_id: LocalDefId) -> Ty<'tcx> {
.with_help("`sym` operands must refer to either a function or a static")
.emit();
Ty::new_error_with_message(
tcx,
span,
format!("invalid type for `sym` operand"),
)
Ty::new_error_with_message(tcx, span, format!("invalid type for `sym` operand"))
}
}
}