From ae024919845a44473c22b8c3f1dfa075c9c5c75d Mon Sep 17 00:00:00 2001 From: jackh726 Date: Mon, 19 Jul 2021 23:44:35 -0400 Subject: Better errors when we don't have implicit statics in trait objects --- compiler/rustc_ast_lowering/src/path.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/rustc_ast_lowering/src') diff --git a/compiler/rustc_ast_lowering/src/path.rs b/compiler/rustc_ast_lowering/src/path.rs index fe9f1fb20f0..55173c6f869 100644 --- a/compiler/rustc_ast_lowering/src/path.rs +++ b/compiler/rustc_ast_lowering/src/path.rs @@ -336,6 +336,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { insertion_sp, suggestion, ); + err.note("assuming a `'static` lifetime..."); err.emit(); } AnonymousLifetimeMode::PassThrough | AnonymousLifetimeMode::ReportError => { -- cgit 1.4.1-3-g733a5