Improve impl trait disallowed context error text
This commit is contained in:
parent
e0745e8f5d
commit
3e857f5743
10 changed files with 100 additions and 100 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue