Make error message less awkward
This commit is contained in:
parent
23ab0f2cdc
commit
0d907c17a8
16 changed files with 32 additions and 32 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue