1
Fork 0

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
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
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