Make error message less awkward

This commit is contained in:
Michael Goulet 2025-02-02 14:58:12 +00:00
parent 23ab0f2cdc
commit 0d907c17a8
16 changed files with 32 additions and 32 deletions

View file

@ -1765,7 +1765,7 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
};
err.code(E0746);
err.primary_message("return type cannot have an unboxed trait object");
err.primary_message("return type cannot be a trait object without pointer indirection");
err.children.clear();
let span = obligation.cause.span;