1
Fork 0

Clarify some diagnostic messages

This commit is contained in:
Oli Scherer 2022-08-25 10:30:46 +00:00
parent 5cd3cc134a
commit 64d11fc8e3
6 changed files with 22 additions and 12 deletions

View file

@ -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();