diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2021-07-19 09:21:27 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2021-07-19 10:19:58 -0300 |
| commit | 3e857f5743295bf81380e45467372ab45f322e1c (patch) | |
| tree | 8806bb921b9250ffd55cc7cef7833751d6578748 /compiler/rustc_ast_lowering/src | |
| parent | e0745e8f5d40626a4fa7a82d396c50d879f5dc0a (diff) | |
| download | rust-3e857f5743295bf81380e45467372ab45f322e1c.tar.gz rust-3e857f5743295bf81380e45467372ab45f322e1c.zip | |
Improve impl trait disallowed context error text
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index 9718739f813..d4caba92416 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -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 |
