mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
fix rebase
This commit is contained in:
@@ -118,7 +118,7 @@ pub(super) fn try_report_static_impl_trait(&self) -> Option<ErrorReported> {
|
||||
"alternatively, add an explicit `'static` bound to this reference";
|
||||
let plus_lt = format!(" + {}", lifetime_name);
|
||||
match fn_return.kind {
|
||||
TyKind::Def(item_id, _) => {
|
||||
TyKind::OpaqueDef(item_id, _) => {
|
||||
let item = self.tcx().hir().item(item_id.id);
|
||||
let opaque = if let ItemKind::OpaqueTy(opaque) = &item.kind {
|
||||
opaque
|
||||
|
||||
Reference in New Issue
Block a user