change error messages to be incorrect, but more helpful

This commit is contained in:
lcnr
2024-02-22 18:18:33 +01:00
parent 49dc0f22f4
commit c71484eefd
15 changed files with 15 additions and 15 deletions

View File

@@ -246,7 +246,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
self.dcx(),
span,
E0275,
"overflow setting `{a}` to a subtype of `{b}`",
"overflow assigning `{a}` to `{b}`",
)
}
_ => {