Improve impl trait disallowed context error text

This commit is contained in:
Santiago Pastorino
2021-07-19 09:21:27 -03:00
parent e0745e8f5d
commit 3e857f5743
10 changed files with 100 additions and 100 deletions

View File

@@ -1466,7 +1466,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
t.span,
E0562,
"`impl Trait` not allowed outside of {}",
"function and inherent method return types",
"function and method return types",
);
err.emit();
hir::TyKind::Err