1
Fork 0

Don't call await a method

This commit is contained in:
Michael Goulet 2023-04-25 19:48:59 +00:00
parent e6077fc1b8
commit 6c9249f689
8 changed files with 43 additions and 7 deletions

View file

@ -184,6 +184,9 @@ impl<'tcx> NonConstOp<'tcx> for FnCallNonConst<'tcx> {
CallDesugaringKind::TryBlockFromOutput => {
error!("`try` block cannot convert `{}` to the result in {}s")
}
CallDesugaringKind::Await => {
error!("cannot convert `{}` into a future in {}s")
}
};
diag_trait(&mut err, self_ty, kind.trait_def_id(tcx));