Clarify some diagnostic messages
This commit is contained in:
parent
5cd3cc134a
commit
64d11fc8e3
6 changed files with 22 additions and 12 deletions
|
@ -2940,8 +2940,9 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
|||
// though we can easily give a hint that ought to be
|
||||
// relevant.
|
||||
err.note(
|
||||
"lifetimes appearing in an associated type are not considered constrained",
|
||||
"lifetimes appearing in an associated or opaque type are not considered constrained",
|
||||
);
|
||||
err.note("consider introducing a named lifetime parameter");
|
||||
}
|
||||
|
||||
err.emit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue